var yl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(yl(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},O=(e,t,n,r)=>(yl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Li=(e,t,n,r)=>({set _(i){O(e,t,i,n)},get _(){return v(e,t,r)}}),I=(e,t,n)=>(yl(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jc={exports:{}},Wo={},Yc={exports:{}},z={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ki=Symbol.for("react.element"),Wp=Symbol.for("react.portal"),Kp=Symbol.for("react.fragment"),qp=Symbol.for("react.strict_mode"),Gp=Symbol.for("react.profiler"),Xp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),Yp=Symbol.for("react.forward_ref"),Zp=Symbol.for("react.suspense"),bp=Symbol.for("react.memo"),eh=Symbol.for("react.lazy"),ca=Symbol.iterator;function th(e){return e===null||typeof e!="object"?null:(e=ca&&e[ca]||e["@@iterator"],typeof e=="function"?e:null)}var Zc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bc=Object.assign,ef={};function hr(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Zc}hr.prototype.isReactComponent={};hr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=hr.prototype;function su(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Zc}var uu=su.prototype=new tf;uu.constructor=su;bc(uu,hr.prototype);uu.isPureReactComponent=!0;var fa=Array.isArray,nf=Object.prototype.hasOwnProperty,au={current:null},rf={key:!0,ref:!0,__self:!0,__source:!0};function of(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)nf.call(t,r)&&!rf.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:ki,type:e,key:o,ref:l,props:i,_owner:au.current}}function nh(e,t){return{$$typeof:ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ki}function rh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var da=/\/+/g;function vl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rh(""+e.key):t.toString(36)}function Yi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ki:case Wp:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+vl(l,0):r,fa(i)?(n="",e!=null&&(n=e.replace(da,"$&/")+"/"),Yi(i,t,n,"",function(a){return a})):i!=null&&(cu(i)&&(i=nh(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(da,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",fa(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+vl(o,s);l+=Yi(o,t,n,u,i)}else if(u=th(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+vl(o,s++),l+=Yi(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Di(e,t,n){if(e==null)return e;var r=[],i=0;return Yi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function ih(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},Zi={transition:null},oh={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Zi,ReactCurrentOwner:au};z.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(e,function(t){return t})||[]},only:function(e){if(!cu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=hr;z.Fragment=Kp;z.Profiler=Gp;z.PureComponent=su;z.StrictMode=qp;z.Suspense=Zp;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oh;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bc({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=au.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)nf.call(t,u)&&!rf.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:ki,type:e.type,key:i,ref:o,props:r,_owner:l}};z.createContext=function(e){return e={$$typeof:Jp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Xp,_context:e},e.Consumer=e};z.createElement=of;z.createFactory=function(e){var t=of.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:Yp,render:e}};z.isValidElement=cu;z.lazy=function(e){return{$$typeof:eh,_payload:{_status:-1,_result:e},_init:ih}};z.memo=function(e,t){return{$$typeof:bp,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Zi.transition;Zi.transition={};try{e()}finally{Zi.transition=t}};z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};z.useCallback=function(e,t){return Se.current.useCallback(e,t)};z.useContext=function(e){return Se.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};z.useEffect=function(e,t){return Se.current.useEffect(e,t)};z.useId=function(){return Se.current.useId()};z.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Se.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};z.useRef=function(e){return Se.current.useRef(e)};z.useState=function(e){return Se.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Se.current.useTransition()};z.version="18.2.0";Yc.exports=z;var re=Yc.exports;/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lh=re,sh=Symbol.for("react.element"),uh=Symbol.for("react.fragment"),ah=Object.prototype.hasOwnProperty,ch=lh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fh={key:!0,ref:!0,__self:!0,__source:!0};function lf(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ah.call(t,r)&&!fh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sh,type:e,key:o,ref:l,props:i,_owner:ch.current}}Wo.Fragment=uh;Wo.jsx=lf;Wo.jsxs=lf;Jc.exports=Wo;var L=Jc.exports,Jl={},sf={exports:{}},Ae={},uf={exports:{}},af={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(T,D){var A=T.length;T.push(D);e:for(;0<A;){var Z=A-1>>>1,oe=T[Z];if(0<i(oe,D))T[Z]=D,T[A]=oe,A=Z;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var D=T[0],A=T.pop();if(A!==D){T[0]=A;e:for(var Z=0,oe=T.length,Ti=oe>>>1;Z<Ti;){var en=2*(Z+1)-1,ml=T[en],tn=en+1,Fi=T[tn];if(0>i(ml,A))tn<oe&&0>i(Fi,ml)?(T[Z]=Fi,T[tn]=A,Z=tn):(T[Z]=ml,T[en]=A,Z=en);else if(tn<oe&&0>i(Fi,A))T[Z]=Fi,T[tn]=A,Z=tn;else break e}}return D}function i(T,D){var A=T.sortIndex-D.sortIndex;return A!==0?A:T.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],c=1,f=null,d=3,m=!1,g=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var D=n(a);D!==null;){if(D.callback===null)r(a);else if(D.startTime<=T)r(a),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(a)}}function S(T){if(w=!1,y(T),!g)if(n(u)!==null)g=!0,pl(x);else{var D=n(a);D!==null&&hl(S,D.startTime-T)}}function x(T,D){g=!1,w&&(w=!1,p(_),_=-1),m=!0;var A=d;try{for(y(D),f=n(u);f!==null&&(!(f.expirationTime>D)||T&&!qe());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,d=f.priorityLevel;var oe=Z(f.expirationTime<=D);D=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(u)&&r(u),y(D)}else r(u);f=n(u)}if(f!==null)var Ti=!0;else{var en=n(a);en!==null&&hl(S,en.startTime-D),Ti=!1}return Ti}finally{f=null,d=A,m=!1}}var R=!1,P=null,_=-1,B=5,M=-1;function qe(){return!(e.unstable_now()-M<B)}function gr(){if(P!==null){var T=e.unstable_now();M=T;var D=!0;try{D=P(!0,T)}finally{D?wr():(R=!1,P=null)}}else R=!1}var wr;if(typeof h=="function")wr=function(){h(gr)};else if(typeof MessageChannel<"u"){var aa=new MessageChannel,Qp=aa.port2;aa.port1.onmessage=gr,wr=function(){Qp.postMessage(null)}}else wr=function(){k(gr,0)};function pl(T){P=T,R||(R=!0,wr())}function hl(T,D){_=k(function(){T(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,pl(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var A=d;d=D;try{return T()}finally{d=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var A=d;d=T;try{return D()}finally{d=A}},e.unstable_scheduleCallback=function(T,D,A){var Z=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?Z+A:Z):A=Z,T){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=A+oe,T={id:c++,callback:D,priorityLevel:T,startTime:A,expirationTime:oe,sortIndex:-1},A>Z?(T.sortIndex=A,t(a,T),n(u)===null&&T===n(a)&&(w?(p(_),_=-1):w=!0,hl(S,A-Z))):(T.sortIndex=oe,t(u,T),g||m||(g=!0,pl(x))),T},e.unstable_shouldYield=qe,e.unstable_wrapCallback=function(T){var D=d;return function(){var A=d;d=D;try{return T.apply(this,arguments)}finally{d=A}}}})(af);uf.exports=af;var dh=uf.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cf=re,De=dh;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ff=new Set,Vr={};function Cn(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Vr[e]=t,e=0;e<t.length;e++)ff.add(t[e])}var St=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=Object.prototype.hasOwnProperty,ph=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pa={},ha={};function hh(e){return Yl.call(ha,e)?!0:Yl.call(pa,e)?!1:ph.test(e)?ha[e]=!0:(pa[e]=!0,!1)}function mh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yh(e,t,n,r){if(t===null||typeof t>"u"||mh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function du(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,du);de[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fu,du);de[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fu,du);de[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var i=de.hasOwnProperty(t)?de[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(yh(t,n,i,r)&&(n=null),r||i===null?hh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xt=cf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ai=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),hu=Symbol.for("react.strict_mode"),Zl=Symbol.for("react.profiler"),df=Symbol.for("react.provider"),pf=Symbol.for("react.context"),mu=Symbol.for("react.forward_ref"),bl=Symbol.for("react.suspense"),es=Symbol.for("react.suspense_list"),yu=Symbol.for("react.memo"),Ot=Symbol.for("react.lazy"),hf=Symbol.for("react.offscreen"),ma=Symbol.iterator;function Sr(e){return e===null||typeof e!="object"?null:(e=ma&&e[ma]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,gl;function Tr(e){if(gl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gl=t&&t[1]||""}return`
`+gl+e}var wl=!1;function Sl(e,t){if(!e||wl)return"";wl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
`),o=r.stack.split(`
`),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var u=`
`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function vh(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function ts(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rn:return"Fragment";case Pn:return"Portal";case Zl:return"Profiler";case hu:return"StrictMode";case bl:return"Suspense";case es:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yu:return t=e.displayName||null,t!==null?t:ts(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return ts(e(t))}catch{}}return null}function gh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ts(t);case 8:return t===hu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wh(e){var t=mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ii(e){e._valueTracker||(e._valueTracker=wh(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ns(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ya(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vf(e,t){t=t.checked,t!=null&&pu(e,"checked",t,!1)}function rs(e,t){vf(e,t);var n=Xt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?is(e,t.type,n):t.hasOwnProperty("defaultValue")&&is(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function va(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function is(e,t,n){(t!=="number"||vo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fr=Array.isArray;function jn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function os(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ga(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Fr(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xt(n)}}function gf(e,t){var n=Xt(t.value),r=Xt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function wa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ls(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zi,Sf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zi=zi||document.createElement("div"),zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sh=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Sh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function kf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Eh=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ss(e,t){if(t){if(Eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function us(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var as=null;function vu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cs=null,Un=null,Bn=null;function Sa(e){if(e=_i(e)){if(typeof cs!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Jo(t),cs(e.stateNode,e.type,t))}}function Cf(e){Un?Bn?Bn.push(e):Bn=[e]:Un=e}function xf(){if(Un){var e=Un,t=Bn;if(Bn=Un=null,Sa(e),t)for(e=0;e<t.length;e++)Sa(t[e])}}function _f(e,t){return e(t)}function Pf(){}var El=!1;function Rf(e,t,n){if(El)return e(t,n);El=!0;try{return _f(e,t,n)}finally{El=!1,(Un!==null||Bn!==null)&&(Pf(),xf())}}function Kr(e,t){var n=e.stateNode;if(n===null)return null;var r=Jo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var fs=!1;if(St)try{var Er={};Object.defineProperty(Er,"passive",{get:function(){fs=!0}}),window.addEventListener("test",Er,Er),window.removeEventListener("test",Er,Er)}catch{fs=!1}function kh(e,t,n,r,i,o,l,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var zr=!1,go=null,wo=!1,ds=null,Ch={onError:function(e){zr=!0,go=e}};function xh(e,t,n,r,i,o,l,s,u){zr=!1,go=null,kh.apply(Ch,arguments)}function _h(e,t,n,r,i,o,l,s,u){if(xh.apply(this,arguments),zr){if(zr){var a=go;zr=!1,go=null}else throw Error(C(198));wo||(wo=!0,ds=a)}}function xn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Of(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ea(e){if(xn(e)!==e)throw Error(C(188))}function Ph(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ea(i),e;if(o===r)return Ea(i),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Nf(e){return e=Ph(e),e!==null?Tf(e):null}function Tf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tf(e);if(t!==null)return t;e=e.sibling}return null}var Ff=De.unstable_scheduleCallback,ka=De.unstable_cancelCallback,Rh=De.unstable_shouldYield,Oh=De.unstable_requestPaint,b=De.unstable_now,Nh=De.unstable_getCurrentPriorityLevel,gu=De.unstable_ImmediatePriority,Lf=De.unstable_UserBlockingPriority,So=De.unstable_NormalPriority,Th=De.unstable_LowPriority,Df=De.unstable_IdlePriority,Ko=null,ct=null;function Fh(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ko,e,void 0,(e.current.flags&128)===128)}catch{}}var be=Math.clz32?Math.clz32:Ah,Lh=Math.log,Dh=Math.LN2;function Ah(e){return e>>>=0,e===0?32:31-(Lh(e)/Dh|0)|0}var Mi=64,ji=4194304;function Lr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Eo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=Lr(s):(o&=l,o!==0&&(r=Lr(o)))}else l=n&~i,l!==0?r=Lr(l):o!==0&&(r=Lr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-be(t),i=1<<n,r|=e[n],t&=~i;return r}function Ih(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-be(o),s=1<<l,u=i[l];u===-1?(!(s&n)||s&r)&&(i[l]=Ih(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function ps(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Af(){var e=Mi;return Mi<<=1,!(Mi&4194240)&&(Mi=64),e}function kl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-be(t),e[t]=n}function Mh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-be(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function wu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function If(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zf,Su,Mf,jf,Uf,hs=!1,Ui=[],Ht=null,$t=null,Qt=null,qr=new Map,Gr=new Map,Tt=[],jh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ca(e,t){switch(e){case"focusin":case"focusout":Ht=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Qt=null;break;case"pointerover":case"pointerout":qr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(t.pointerId)}}function kr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=_i(t),t!==null&&Su(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Uh(e,t,n,r,i){switch(t){case"focusin":return Ht=kr(Ht,e,t,n,r,i),!0;case"dragenter":return $t=kr($t,e,t,n,r,i),!0;case"mouseover":return Qt=kr(Qt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return qr.set(o,kr(qr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Gr.set(o,kr(Gr.get(o)||null,e,t,n,r,i)),!0}return!1}function Bf(e){var t=on(e.target);if(t!==null){var n=xn(t);if(n!==null){if(t=n.tag,t===13){if(t=Of(n),t!==null){e.blockedOn=t,Uf(e.priority,function(){Mf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ms(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);as=r,n.target.dispatchEvent(r),as=null}else return t=_i(n),t!==null&&Su(t),e.blockedOn=n,!1;t.shift()}return!0}function xa(e,t,n){bi(e)&&n.delete(t)}function Bh(){hs=!1,Ht!==null&&bi(Ht)&&(Ht=null),$t!==null&&bi($t)&&($t=null),Qt!==null&&bi(Qt)&&(Qt=null),qr.forEach(xa),Gr.forEach(xa)}function Cr(e,t){e.blockedOn===t&&(e.blockedOn=null,hs||(hs=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,Bh)))}function Xr(e){function t(i){return Cr(i,e)}if(0<Ui.length){Cr(Ui[0],e);for(var n=1;n<Ui.length;n++){var r=Ui[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ht!==null&&Cr(Ht,e),$t!==null&&Cr($t,e),Qt!==null&&Cr(Qt,e),qr.forEach(t),Gr.forEach(t),n=0;n<Tt.length;n++)r=Tt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&(n=Tt[0],n.blockedOn===null);)Bf(n),n.blockedOn===null&&Tt.shift()}var Hn=xt.ReactCurrentBatchConfig,ko=!0;function Hh(e,t,n,r){var i=H,o=Hn.transition;Hn.transition=null;try{H=1,Eu(e,t,n,r)}finally{H=i,Hn.transition=o}}function $h(e,t,n,r){var i=H,o=Hn.transition;Hn.transition=null;try{H=4,Eu(e,t,n,r)}finally{H=i,Hn.transition=o}}function Eu(e,t,n,r){if(ko){var i=ms(e,t,n,r);if(i===null)Ll(e,t,r,Co,n),Ca(e,r);else if(Uh(i,e,t,n,r))r.stopPropagation();else if(Ca(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var o=_i(i);if(o!==null&&zf(o),o=ms(e,t,n,r),o===null&&Ll(e,t,r,Co,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ll(e,t,r,null,n)}}var Co=null;function ms(e,t,n,r){if(Co=null,e=vu(r),e=on(e),e!==null)if(t=xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Of(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Co=e,null}function Hf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Nh()){case gu:return 1;case Lf:return 4;case So:case Th:return 16;case Df:return 536870912;default:return 16}default:return 16}}var Ut=null,ku=null,eo=null;function $f(){if(eo)return eo;var e,t=ku,n=t.length,r,i="value"in Ut?Ut.value:Ut.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return eo=i.slice(e,1<r?1-r:void 0)}function to(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bi(){return!0}function _a(){return!1}function Ie(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Bi:_a,this.isPropagationStopped=_a,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cu=Ie(mr),xi=J({},mr,{view:0,detail:0}),Qh=Ie(xi),Cl,xl,xr,qo=J({},xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xr&&(xr&&e.type==="mousemove"?(Cl=e.screenX-xr.screenX,xl=e.screenY-xr.screenY):xl=Cl=0,xr=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:xl}}),Pa=Ie(qo),Vh=J({},qo,{dataTransfer:0}),Wh=Ie(Vh),Kh=J({},xi,{relatedTarget:0}),_l=Ie(Kh),qh=J({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),Gh=Ie(qh),Xh=J({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jh=Ie(Xh),Yh=J({},mr,{data:0}),Ra=Ie(Yh),Zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},em={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=em[e])?!!t[e]:!1}function xu(){return tm}var nm=J({},xi,{key:function(e){if(e.key){var t=Zh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=to(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xu,charCode:function(e){return e.type==="keypress"?to(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?to(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rm=Ie(nm),im=J({},qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oa=Ie(im),om=J({},xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xu}),lm=Ie(om),sm=J({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),um=Ie(sm),am=J({},qo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cm=Ie(am),fm=[9,13,27,32],_u=St&&"CompositionEvent"in window,Mr=null;St&&"documentMode"in document&&(Mr=document.documentMode);var dm=St&&"TextEvent"in window&&!Mr,Qf=St&&(!_u||Mr&&8<Mr&&11>=Mr),Na=" ",Ta=!1;function Vf(e,t){switch(e){case"keyup":return fm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function pm(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:(Ta=!0,Na);case"textInput":return e=t.data,e===Na&&Ta?null:e;default:return null}}function hm(e,t){if(On)return e==="compositionend"||!_u&&Vf(e,t)?(e=$f(),eo=ku=Ut=null,On=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qf&&t.locale!=="ko"?null:t.data;default:return null}}var mm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mm[e.type]:t==="textarea"}function Kf(e,t,n,r){Cf(r),t=xo(t,"onChange"),0<t.length&&(n=new Cu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,Jr=null;function ym(e){rd(e,0)}function Go(e){var t=Fn(e);if(yf(t))return e}function vm(e,t){if(e==="change")return t}var qf=!1;if(St){var Pl;if(St){var Rl="oninput"in document;if(!Rl){var La=document.createElement("div");La.setAttribute("oninput","return;"),Rl=typeof La.oninput=="function"}Pl=Rl}else Pl=!1;qf=Pl&&(!document.documentMode||9<document.documentMode)}function Da(){jr&&(jr.detachEvent("onpropertychange",Gf),Jr=jr=null)}function Gf(e){if(e.propertyName==="value"&&Go(Jr)){var t=[];Kf(t,Jr,e,vu(e)),Rf(ym,t)}}function gm(e,t,n){e==="focusin"?(Da(),jr=t,Jr=n,jr.attachEvent("onpropertychange",Gf)):e==="focusout"&&Da()}function wm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Go(Jr)}function Sm(e,t){if(e==="click")return Go(t)}function Em(e,t){if(e==="input"||e==="change")return Go(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tt=typeof Object.is=="function"?Object.is:km;function Yr(e,t){if(tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Yl.call(t,i)||!tt(e[i],t[i]))return!1}return!0}function Aa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ia(e,t){var n=Aa(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Aa(n)}}function Xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jf(){for(var e=window,t=vo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vo(e.document)}return t}function Pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cm(e){var t=Jf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xf(n.ownerDocument.documentElement,n)){if(r!==null&&Pu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ia(n,o);var l=Ia(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xm=St&&"documentMode"in document&&11>=document.documentMode,Nn=null,ys=null,Ur=null,vs=!1;function za(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vs||Nn==null||Nn!==vo(r)||(r=Nn,"selectionStart"in r&&Pu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&Yr(Ur,r)||(Ur=r,r=xo(ys,"onSelect"),0<r.length&&(t=new Cu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nn)))}function Hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionend:Hi("Transition","TransitionEnd")},Ol={},Yf={};St&&(Yf=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function Xo(e){if(Ol[e])return Ol[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yf)return Ol[e]=t[n];return e}var Zf=Xo("animationend"),bf=Xo("animationiteration"),ed=Xo("animationstart"),td=Xo("transitionend"),nd=new Map,Ma="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yt(e,t){nd.set(e,t),Cn(t,[e])}for(var Nl=0;Nl<Ma.length;Nl++){var Tl=Ma[Nl],_m=Tl.toLowerCase(),Pm=Tl[0].toUpperCase()+Tl.slice(1);Yt(_m,"on"+Pm)}Yt(Zf,"onAnimationEnd");Yt(bf,"onAnimationIteration");Yt(ed,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(td,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function ja(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_h(r,t,void 0,e),e.currentTarget=null}function rd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;ja(i,s,a),o=u}else for(l=0;l<r.length;l++){if(s=r[l],u=s.instance,a=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;ja(i,s,a),o=u}}}if(wo)throw e=ds,wo=!1,ds=null,e}function Q(e,t){var n=t[ks];n===void 0&&(n=t[ks]=new Set);var r=e+"__bubble";n.has(r)||(id(t,e,2,!1),n.add(r))}function Fl(e,t,n){var r=0;t&&(r|=4),id(n,e,r,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function Zr(e){if(!e[$i]){e[$i]=!0,ff.forEach(function(n){n!=="selectionchange"&&(Rm.has(n)||Fl(n,!1,e),Fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,Fl("selectionchange",!1,t))}}function id(e,t,n,r){switch(Hf(t)){case 1:var i=Hh;break;case 4:i=$h;break;default:i=Eu}n=i.bind(null,t,n,e),i=void 0,!fs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ll(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;l=l.return}for(;s!==null;){if(l=on(s),l===null)return;if(u=l.tag,u===5||u===6){r=o=l;continue e}s=s.parentNode}}r=r.return}Rf(function(){var a=o,c=vu(n),f=[];e:{var d=nd.get(e);if(d!==void 0){var m=Cu,g=e;switch(e){case"keypress":if(to(n)===0)break e;case"keydown":case"keyup":m=rm;break;case"focusin":g="focus",m=_l;break;case"focusout":g="blur",m=_l;break;case"beforeblur":case"afterblur":m=_l;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Pa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=lm;break;case Zf:case bf:case ed:m=Gh;break;case td:m=um;break;case"scroll":m=Qh;break;case"wheel":m=cm;break;case"copy":case"cut":case"paste":m=Jh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Oa}var w=(t&4)!==0,k=!w&&e==="scroll",p=w?d!==null?d+"Capture":null:d;w=[];for(var h=a,y;h!==null;){y=h;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,p!==null&&(S=Kr(h,p),S!=null&&w.push(br(h,S,y)))),k)break;h=h.return}0<w.length&&(d=new m(d,g,null,n,c),f.push({event:d,listeners:w}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&n!==as&&(g=n.relatedTarget||n.fromElement)&&(on(g)||g[Et]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=a,g=g?on(g):null,g!==null&&(k=xn(g),g!==k||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=a),m!==g)){if(w=Pa,S="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=Oa,S="onPointerLeave",p="onPointerEnter",h="pointer"),k=m==null?d:Fn(m),y=g==null?d:Fn(g),d=new w(S,h+"leave",m,n,c),d.target=k,d.relatedTarget=y,S=null,on(c)===a&&(w=new w(p,h+"enter",g,n,c),w.target=y,w.relatedTarget=k,S=w),k=S,m&&g)t:{for(w=m,p=g,h=0,y=w;y;y=_n(y))h++;for(y=0,S=p;S;S=_n(S))y++;for(;0<h-y;)w=_n(w),h--;for(;0<y-h;)p=_n(p),y--;for(;h--;){if(w===p||p!==null&&w===p.alternate)break t;w=_n(w),p=_n(p)}w=null}else w=null;m!==null&&Ua(f,d,m,w,!1),g!==null&&k!==null&&Ua(f,k,g,w,!0)}}e:{if(d=a?Fn(a):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var x=vm;else if(Fa(d))if(qf)x=Em;else{x=wm;var R=gm}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=Sm);if(x&&(x=x(e,a))){Kf(f,x,n,c);break e}R&&R(e,d,a),e==="focusout"&&(R=d._wrapperState)&&R.controlled&&d.type==="number"&&is(d,"number",d.value)}switch(R=a?Fn(a):window,e){case"focusin":(Fa(R)||R.contentEditable==="true")&&(Nn=R,ys=a,Ur=null);break;case"focusout":Ur=ys=Nn=null;break;case"mousedown":vs=!0;break;case"contextmenu":case"mouseup":case"dragend":vs=!1,za(f,n,c);break;case"selectionchange":if(xm)break;case"keydown":case"keyup":za(f,n,c)}var P;if(_u)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else On?Vf(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Qf&&n.locale!=="ko"&&(On||_!=="onCompositionStart"?_==="onCompositionEnd"&&On&&(P=$f()):(Ut=c,ku="value"in Ut?Ut.value:Ut.textContent,On=!0)),R=xo(a,_),0<R.length&&(_=new Ra(_,e,null,n,c),f.push({event:_,listeners:R}),P?_.data=P:(P=Wf(n),P!==null&&(_.data=P)))),(P=dm?pm(e,n):hm(e,n))&&(a=xo(a,"onBeforeInput"),0<a.length&&(c=new Ra("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:a}),c.data=P))}rd(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Kr(e,n),o!=null&&r.unshift(br(e,o,i)),o=Kr(e,t),o!=null&&r.push(br(e,o,i))),e=e.return}return r}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ua(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,i?(u=Kr(n,o),u!=null&&l.unshift(br(n,u,s))):i||(u=Kr(n,o),u!=null&&l.push(br(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Om=/\r\n?/g,Nm=/\u0000|\uFFFD/g;function Ba(e){return(typeof e=="string"?e:""+e).replace(Om,`
`).replace(Nm,"")}function Qi(e,t,n){if(t=Ba(t),Ba(e)!==t&&n)throw Error(C(425))}function _o(){}var gs=null,ws=null;function Ss(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Es=typeof setTimeout=="function"?setTimeout:void 0,Tm=typeof clearTimeout=="function"?clearTimeout:void 0,Ha=typeof Promise=="function"?Promise:void 0,Fm=typeof queueMicrotask=="function"?queueMicrotask:typeof Ha<"u"?function(e){return Ha.resolve(null).then(e).catch(Lm)}:Es;function Lm(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Xr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Xr(t)}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $a(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yr=Math.random().toString(36).slice(2),ut="__reactFiber$"+yr,ei="__reactProps$"+yr,Et="__reactContainer$"+yr,ks="__reactEvents$"+yr,Dm="__reactListeners$"+yr,Am="__reactHandles$"+yr;function on(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Et]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$a(e);e!==null;){if(n=e[ut])return n;e=$a(e)}return t}e=n,n=e.parentNode}return null}function _i(e){return e=e[ut]||e[Et],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Jo(e){return e[ei]||null}var Cs=[],Ln=-1;function Zt(e){return{current:e}}function W(e){0>Ln||(e.current=Cs[Ln],Cs[Ln]=null,Ln--)}function $(e,t){Ln++,Cs[Ln]=e.current,e.current=t}var Jt={},ye=Zt(Jt),Pe=Zt(!1),gn=Jt;function lr(e,t){var n=e.type.contextTypes;if(!n)return Jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function Po(){W(Pe),W(ye)}function Qa(e,t,n){if(ye.current!==Jt)throw Error(C(168));$(ye,t),$(Pe,n)}function od(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,gh(e)||"Unknown",i));return J({},n,r)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jt,gn=ye.current,$(ye,e),$(Pe,Pe.current),!0}function Va(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=od(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,W(Pe),W(ye),$(ye,e)):W(Pe),$(Pe,n)}var mt=null,Yo=!1,Al=!1;function ld(e){mt===null?mt=[e]:mt.push(e)}function Im(e){Yo=!0,ld(e)}function bt(){if(!Al&&mt!==null){Al=!0;var e=0,t=H;try{var n=mt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Yo=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),Ff(gu,bt),i}finally{H=t,Al=!1}}return null}var Dn=[],An=0,Oo=null,No=0,Be=[],He=0,wn=null,yt=1,vt="";function nn(e,t){Dn[An++]=No,Dn[An++]=Oo,Oo=e,No=t}function sd(e,t,n){Be[He++]=yt,Be[He++]=vt,Be[He++]=wn,wn=e;var r=yt;e=vt;var i=32-be(r)-1;r&=~(1<<i),n+=1;var o=32-be(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,yt=1<<32-be(t)+i|n<<i|r,vt=o+e}else yt=1<<o|n<<i|r,vt=e}function Ru(e){e.return!==null&&(nn(e,1),sd(e,1,0))}function Ou(e){for(;e===Oo;)Oo=Dn[--An],Dn[An]=null,No=Dn[--An],Dn[An]=null;for(;e===wn;)wn=Be[--He],Be[He]=null,vt=Be[--He],Be[He]=null,yt=Be[--He],Be[He]=null}var Le=null,Fe=null,K=!1,Ze=null;function ud(e,t){var n=$e(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Wa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Le=e,Fe=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,Fe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=$e(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,Fe=null,!0):!1;default:return!1}}function xs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _s(e){if(K){var t=Fe;if(t){var n=t;if(!Wa(e,t)){if(xs(e))throw Error(C(418));t=Vt(n.nextSibling);var r=Le;t&&Wa(e,t)?ud(r,n):(e.flags=e.flags&-4097|2,K=!1,Le=e)}}else{if(xs(e))throw Error(C(418));e.flags=e.flags&-4097|2,K=!1,Le=e}}}function Ka(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function Vi(e){if(e!==Le)return!1;if(!K)return Ka(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ss(e.type,e.memoizedProps)),t&&(t=Fe)){if(xs(e))throw ad(),Error(C(418));for(;t;)ud(e,t),t=Vt(t.nextSibling)}if(Ka(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Fe=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Fe=null}}else Fe=Le?Vt(e.stateNode.nextSibling):null;return!0}function ad(){for(var e=Fe;e;)e=Vt(e.nextSibling)}function sr(){Fe=Le=null,K=!1}function Nu(e){Ze===null?Ze=[e]:Ze.push(e)}var zm=xt.ReactCurrentBatchConfig;function Xe(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var To=Zt(null),Fo=null,In=null,Tu=null;function Fu(){Tu=In=Fo=null}function Lu(e){var t=To.current;W(To),e._currentValue=t}function Ps(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $n(e,t){Fo=e,Tu=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function We(e){var t=e._currentValue;if(Tu!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(Fo===null)throw Error(C(308));In=e,Fo.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var ln=null;function Du(e){ln===null?ln=[e]:ln.push(e)}function cd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Du(t)):(n.next=i.next,i.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nt=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,kt(e,n)}return i=r.interleaved,i===null?(t.next=t,Du(r)):(t.next=i.next,i.next=t),r.interleaved=t,kt(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var i=e.updateQueue;Nt=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?o=a:l.next=a,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(o!==null){var f=i.baseState;l=0,c=a=u=null,s=o;do{var d=s.lane,m=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,w=s;switch(d=t,m=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=J({},f,d);break e;case 2:Nt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=m,u=f):c=c.next=m,l|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);En|=l,e.lanes=l,e.memoizedState=f}}function Ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(C(191,i));i.call(r)}}}var dd=new cf.Component().refs;function Rs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zo={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=we(),i=qt(e),o=gt(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(et(t,e,i,r),no(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=we(),i=qt(e),o=gt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(et(t,e,i,r),no(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=we(),r=qt(e),i=gt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wt(e,i,r),t!==null&&(et(t,e,r,n),no(t,e,r))}};function Xa(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Yr(n,r)||!Yr(i,o):!0}function pd(e,t,n){var r=!1,i=Jt,o=t.contextType;return typeof o=="object"&&o!==null?o=We(o):(i=Re(t)?gn:ye.current,r=t.contextTypes,o=(r=r!=null)?lr(e,i):Jt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ja(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zo.enqueueReplaceState(t,t.state,null)}function Os(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=dd,Au(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=We(o):(o=Re(t)?gn:ye.current,i.context=lr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Rs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zo.enqueueReplaceState(i,i.state,null),Lo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function _r(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var s=i.refs;s===dd&&(s=i.refs={}),l===null?delete s[o]:s[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Wi(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){var t=e._init;return t(e._payload)}function hd(e){function t(p,h){if(e){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=Gt(p,h),p.index=0,p.sibling=null,p}function o(p,h,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=2,h)):(p.flags|=1048576,h)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,h,y,S){return h===null||h.tag!==6?(h=Hl(y,p.mode,S),h.return=p,h):(h=i(h,y),h.return=p,h)}function u(p,h,y,S){var x=y.type;return x===Rn?c(p,h,y.props.children,S,y.key):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Ya(x)===h.type)?(S=i(h,y.props),S.ref=_r(p,h,y),S.return=p,S):(S=uo(y.type,y.key,y.props,null,p.mode,S),S.ref=_r(p,h,y),S.return=p,S)}function a(p,h,y,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=$l(y,p.mode,S),h.return=p,h):(h=i(h,y.children||[]),h.return=p,h)}function c(p,h,y,S,x){return h===null||h.tag!==7?(h=vn(y,p.mode,S,x),h.return=p,h):(h=i(h,y),h.return=p,h)}function f(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Hl(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ai:return y=uo(h.type,h.key,h.props,null,p.mode,y),y.ref=_r(p,null,h),y.return=p,y;case Pn:return h=$l(h,p.mode,y),h.return=p,h;case Ot:var S=h._init;return f(p,S(h._payload),y)}if(Fr(h)||Sr(h))return h=vn(h,p.mode,y,null),h.return=p,h;Wi(p,h)}return null}function d(p,h,y,S){var x=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return x!==null?null:s(p,h,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ai:return y.key===x?u(p,h,y,S):null;case Pn:return y.key===x?a(p,h,y,S):null;case Ot:return x=y._init,d(p,h,x(y._payload),S)}if(Fr(y)||Sr(y))return x!==null?null:c(p,h,y,S,null);Wi(p,y)}return null}function m(p,h,y,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(y)||null,s(h,p,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ai:return p=p.get(S.key===null?y:S.key)||null,u(h,p,S,x);case Pn:return p=p.get(S.key===null?y:S.key)||null,a(h,p,S,x);case Ot:var R=S._init;return m(p,h,y,R(S._payload),x)}if(Fr(S)||Sr(S))return p=p.get(y)||null,c(h,p,S,x,null);Wi(h,S)}return null}function g(p,h,y,S){for(var x=null,R=null,P=h,_=h=0,B=null;P!==null&&_<y.length;_++){P.index>_?(B=P,P=null):B=P.sibling;var M=d(p,P,y[_],S);if(M===null){P===null&&(P=B);break}e&&P&&M.alternate===null&&t(p,P),h=o(M,h,_),R===null?x=M:R.sibling=M,R=M,P=B}if(_===y.length)return n(p,P),K&&nn(p,_),x;if(P===null){for(;_<y.length;_++)P=f(p,y[_],S),P!==null&&(h=o(P,h,_),R===null?x=P:R.sibling=P,R=P);return K&&nn(p,_),x}for(P=r(p,P);_<y.length;_++)B=m(P,p,_,y[_],S),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?_:B.key),h=o(B,h,_),R===null?x=B:R.sibling=B,R=B);return e&&P.forEach(function(qe){return t(p,qe)}),K&&nn(p,_),x}function w(p,h,y,S){var x=Sr(y);if(typeof x!="function")throw Error(C(150));if(y=x.call(y),y==null)throw Error(C(151));for(var R=x=null,P=h,_=h=0,B=null,M=y.next();P!==null&&!M.done;_++,M=y.next()){P.index>_?(B=P,P=null):B=P.sibling;var qe=d(p,P,M.value,S);if(qe===null){P===null&&(P=B);break}e&&P&&qe.alternate===null&&t(p,P),h=o(qe,h,_),R===null?x=qe:R.sibling=qe,R=qe,P=B}if(M.done)return n(p,P),K&&nn(p,_),x;if(P===null){for(;!M.done;_++,M=y.next())M=f(p,M.value,S),M!==null&&(h=o(M,h,_),R===null?x=M:R.sibling=M,R=M);return K&&nn(p,_),x}for(P=r(p,P);!M.done;_++,M=y.next())M=m(P,p,_,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?_:M.key),h=o(M,h,_),R===null?x=M:R.sibling=M,R=M);return e&&P.forEach(function(gr){return t(p,gr)}),K&&nn(p,_),x}function k(p,h,y,S){if(typeof y=="object"&&y!==null&&y.type===Rn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ai:e:{for(var x=y.key,R=h;R!==null;){if(R.key===x){if(x=y.type,x===Rn){if(R.tag===7){n(p,R.sibling),h=i(R,y.props.children),h.return=p,p=h;break e}}else if(R.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Ya(x)===R.type){n(p,R.sibling),h=i(R,y.props),h.ref=_r(p,R,y),h.return=p,p=h;break e}n(p,R);break}else t(p,R);R=R.sibling}y.type===Rn?(h=vn(y.props.children,p.mode,S,y.key),h.return=p,p=h):(S=uo(y.type,y.key,y.props,null,p.mode,S),S.ref=_r(p,h,y),S.return=p,p=S)}return l(p);case Pn:e:{for(R=y.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=$l(y,p.mode,S),h.return=p,p=h}return l(p);case Ot:return R=y._init,k(p,h,R(y._payload),S)}if(Fr(y))return g(p,h,y,S);if(Sr(y))return w(p,h,y,S);Wi(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=Hl(y,p.mode,S),h.return=p,p=h),l(p)):n(p,h)}return k}var ur=hd(!0),md=hd(!1),Pi={},ft=Zt(Pi),ti=Zt(Pi),ni=Zt(Pi);function sn(e){if(e===Pi)throw Error(C(174));return e}function Iu(e,t){switch($(ni,t),$(ti,e),$(ft,Pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ls(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ls(t,e)}W(ft),$(ft,t)}function ar(){W(ft),W(ti),W(ni)}function yd(e){sn(ni.current);var t=sn(ft.current),n=ls(t,e.type);t!==n&&($(ti,e),$(ft,n))}function zu(e){ti.current===e&&(W(ft),W(ti))}var G=Zt(0);function Do(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Il=[];function Mu(){for(var e=0;e<Il.length;e++)Il[e]._workInProgressVersionPrimary=null;Il.length=0}var ro=xt.ReactCurrentDispatcher,zl=xt.ReactCurrentBatchConfig,Sn=0,X=null,ne=null,se=null,Ao=!1,Br=!1,ri=0,Mm=0;function pe(){throw Error(C(321))}function ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tt(e[n],t[n]))return!1;return!0}function Uu(e,t,n,r,i,o){if(Sn=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=e===null||e.memoizedState===null?Hm:$m,e=n(r,i),Br){o=0;do{if(Br=!1,ri=0,25<=o)throw Error(C(301));o+=1,se=ne=null,t.updateQueue=null,ro.current=Qm,e=n(r,i)}while(Br)}if(ro.current=Io,t=ne!==null&&ne.next!==null,Sn=0,se=ne=X=null,Ao=!1,t)throw Error(C(300));return e}function Bu(){var e=ri!==0;return ri=0,e}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?X.memoizedState=se=e:se=se.next=e,se}function Ke(){if(ne===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=se===null?X.memoizedState:se.next;if(t!==null)se=t,ne=e;else{if(e===null)throw Error(C(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},se===null?X.memoizedState=se=e:se=se.next=e}return se}function ii(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=Ke(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=ne,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=l=null,u=null,a=o;do{var c=a.lane;if((Sn&c)===c)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=f,l=r):u=u.next=f,X.lanes|=c,En|=c}a=a.next}while(a!==null&&a!==o);u===null?l=r:u.next=s,tt(r,t.memoizedState)||(_e=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,X.lanes|=o,En|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jl(e){var t=Ke(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);tt(o,t.memoizedState)||(_e=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vd(){}function gd(e,t){var n=X,r=Ke(),i=t(),o=!tt(r.memoizedState,i);if(o&&(r.memoizedState=i,_e=!0),r=r.queue,Hu(Ed.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||se!==null&&se.memoizedState.tag&1){if(n.flags|=2048,oi(9,Sd.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(C(349));Sn&30||wd(n,t,i)}return i}function wd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sd(e,t,n,r){t.value=n,t.getSnapshot=r,kd(t)&&Cd(e)}function Ed(e,t,n){return n(function(){kd(t)&&Cd(e)})}function kd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tt(e,n)}catch{return!0}}function Cd(e){var t=kt(e,1);t!==null&&et(t,e,1,-1)}function Za(e){var t=rt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:e},t.queue=e,e=e.dispatch=Bm.bind(null,X,e),[t.memoizedState,e]}function oi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xd(){return Ke().memoizedState}function io(e,t,n,r){var i=rt();X.flags|=e,i.memoizedState=oi(1|t,n,void 0,r===void 0?null:r)}function bo(e,t,n,r){var i=Ke();r=r===void 0?null:r;var o=void 0;if(ne!==null){var l=ne.memoizedState;if(o=l.destroy,r!==null&&ju(r,l.deps)){i.memoizedState=oi(t,n,o,r);return}}X.flags|=e,i.memoizedState=oi(1|t,n,o,r)}function ba(e,t){return io(8390656,8,e,t)}function Hu(e,t){return bo(2048,8,e,t)}function _d(e,t){return bo(4,2,e,t)}function Pd(e,t){return bo(4,4,e,t)}function Rd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,n){return n=n!=null?n.concat([e]):null,bo(4,4,Rd.bind(null,t,e),n)}function $u(){}function Nd(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ju(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Td(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ju(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Fd(e,t,n){return Sn&21?(tt(n,t)||(n=Af(),X.lanes|=n,En|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=n)}function jm(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{H=n,zl.transition=r}}function Ld(){return Ke().memoizedState}function Um(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dd(e))Ad(t,n);else if(n=cd(e,t,n,r),n!==null){var i=we();et(n,e,r,i),Id(n,t,r)}}function Bm(e,t,n){var r=qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dd(e))Ad(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,tt(s,l)){var u=t.interleaved;u===null?(i.next=i,Du(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=cd(e,t,i,r),n!==null&&(i=we(),et(n,e,r,i),Id(n,t,r))}}function Dd(e){var t=e.alternate;return e===X||t!==null&&t===X}function Ad(e,t){Br=Ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Id(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var Io={readContext:We,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Hm={readContext:We,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,io(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4194308,4,e,t)},useInsertionEffect:function(e,t){return io(4,2,e,t)},useMemo:function(e,t){var n=rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Um.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:Za,useDebugValue:$u,useDeferredValue:function(e){return rt().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=jm.bind(null,e[1]),rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=rt();if(K){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ue===null)throw Error(C(349));Sn&30||wd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ba(Ed.bind(null,r,o,e),[e]),r.flags|=2048,oi(9,Sd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rt(),t=ue.identifierPrefix;if(K){var n=vt,r=yt;n=(r&~(1<<32-be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ri++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$m={readContext:We,useCallback:Nd,useContext:We,useEffect:Hu,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Pd,useMemo:Td,useReducer:Ml,useRef:xd,useState:function(){return Ml(ii)},useDebugValue:$u,useDeferredValue:function(e){var t=Ke();return Fd(t,ne.memoizedState,e)},useTransition:function(){var e=Ml(ii)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:vd,useSyncExternalStore:gd,useId:Ld,unstable_isNewReconciler:!1},Qm={readContext:We,useCallback:Nd,useContext:We,useEffect:Hu,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Pd,useMemo:Td,useReducer:jl,useRef:xd,useState:function(){return jl(ii)},useDebugValue:$u,useDeferredValue:function(e){var t=Ke();return ne===null?t.memoizedState=e:Fd(t,ne.memoizedState,e)},useTransition:function(){var e=jl(ii)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:vd,useSyncExternalStore:gd,useId:Ld,unstable_isNewReconciler:!1};function cr(e,t){try{var n="",r=t;do n+=vh(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ul(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vm=typeof WeakMap=="function"?WeakMap:Map;function zd(e,t,n){n=gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mo||(Mo=!0,Us=r),Ns(e,t)},n}function Md(e,t,n){n=gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ns(e,t),typeof r!="function"&&(Kt===null?Kt=new Set([this]):Kt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function ec(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=iy.bind(null,e,t,n),t.then(e,e))}function tc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gt(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var Wm=xt.ReactCurrentOwner,_e=!1;function ge(e,t,n,r){t.child=e===null?md(t,null,n,r):ur(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var o=t.ref;return $n(t,i),r=Uu(e,t,n,r,o,i),n=Bu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(K&&n&&Ru(t),t.flags|=1,ge(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ju(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,jd(e,t,o,r,i)):(e=uo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Yr,n(l,r)&&e.ref===t.ref)return Ct(e,t,i)}return t.flags|=1,e=Gt(o,r),e.ref=t.ref,e.return=t,t.child=e}function jd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Yr(o,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,Ct(e,t,i)}return Ts(e,t,n,r,i)}function Ud(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(Mn,Te),Te|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$(Mn,Te),Te|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$(Mn,Te),Te|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$(Mn,Te),Te|=r;return ge(e,t,i,n),t.child}function Bd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var o=Re(n)?gn:ye.current;return o=lr(t,o),$n(t,i),n=Uu(e,t,n,r,o,i),r=Bu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(K&&r&&Ru(t),t.flags|=1,ge(e,t,n,i),t.child)}function oc(e,t,n,r,i){if(Re(n)){var o=!0;Ro(t)}else o=!1;if($n(t,i),t.stateNode===null)oo(e,t),pd(t,n,r),Os(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=We(a):(a=Re(n)?gn:ye.current,a=lr(t,a));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Ja(t,l,r,a),Nt=!1;var d=t.memoizedState;l.state=d,Lo(t,r,l,i),u=t.memoizedState,s!==r||d!==u||Pe.current||Nt?(typeof c=="function"&&(Rs(t,n,c,r),u=t.memoizedState),(s=Nt||Xa(t,n,s,r,d,u,a))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=a,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,fd(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:Xe(t.type,s),l.props=a,f=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=We(u):(u=Re(n)?gn:ye.current,u=lr(t,u));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||d!==u)&&Ja(t,l,r,u),Nt=!1,d=t.memoizedState,l.state=d,Lo(t,r,l,i);var g=t.memoizedState;s!==f||d!==g||Pe.current||Nt?(typeof m=="function"&&(Rs(t,n,m,r),g=t.memoizedState),(a=Nt||Xa(t,n,a,r,d,g,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=u,r=a):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Fs(e,t,n,r,o,i)}function Fs(e,t,n,r,i,o){Bd(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Va(t,n,!1),Ct(e,t,o);r=t.stateNode,Wm.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=ur(t,e.child,null,o),t.child=ur(t,null,s,o)):ge(e,t,s,o),t.memoizedState=r.state,i&&Va(t,n,!0),t.child}function Hd(e){var t=e.stateNode;t.pendingContext?Qa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qa(e,t.context,!1),Iu(e,t.containerInfo)}function lc(e,t,n,r,i){return sr(),Nu(i),t.flags|=256,ge(e,t,n,r),t.child}var Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,n){var r=t.pendingProps,i=G.current,o=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$(G,i&1),e===null)return _s(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=nl(l,r,0,null),e=vn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Qu(t,l));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Km(e,t,l,r,s,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Gt(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Gt(s,o):(o=vn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Ls,r}return o=e.child,e=o.sibling,r=Gt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qu(e,t){return t=nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ki(e,t,n,r){return r!==null&&Nu(r),ur(t,e.child,null,n),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Km(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ul(Error(C(422))),Ki(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=nl({mode:"visible",children:r.children},i,0,null),o=vn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ur(t,e.child,null,l),t.child.memoizedState=Ds(l),t.memoizedState=Ls,o);if(!(t.mode&1))return Ki(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(C(419)),r=Ul(o,r,void 0),Ki(e,t,l,r)}if(s=(l&e.childLanes)!==0,_e||s){if(r=ue,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,kt(e,i),et(r,e,i,-1))}return Xu(),r=Ul(Error(C(421))),Ki(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=oy.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Fe=Vt(i.nextSibling),Le=t,K=!0,Ze=null,e!==null&&(Be[He++]=yt,Be[He++]=vt,Be[He++]=wn,yt=e.id,vt=e.overflow,wn=t),t=Qu(t,r.children),t.flags|=4096,t)}function sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ps(e.return,t,n)}function Bl(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Qd(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ge(e,t,r.children,n),r=G.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sc(e,n,t);else if(e.tag===19)sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($(G,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Do(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Do(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bl(t,!0,n,null,o);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Gt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qm(e,t,n){switch(t.tag){case 3:Hd(t),sr();break;case 5:yd(t);break;case 1:Re(t.type)&&Ro(t);break;case 4:Iu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$(To,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?$d(e,t,n):($(G,G.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);$(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return Ct(e,t,n)}var Vd,As,Wd,Kd;Vd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};As=function(){};Wd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sn(ft.current);var o=null;switch(n){case"input":i=ns(e,i),r=ns(e,r),o=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),o=[];break;case"textarea":i=os(e,i),r=os(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_o)}ss(n,r);var l;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var s=i[a];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Vr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(s=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Vr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&Q("scroll",e),o||s===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Kd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pr(e,t){if(!K)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function he(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gm(e,t,n){var r=t.pendingProps;switch(Ou(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return he(t),null;case 1:return Re(t.type)&&Po(),he(t),null;case 3:return r=t.stateNode,ar(),W(Pe),W(ye),Mu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&($s(Ze),Ze=null))),As(e,t),he(t),null;case 5:zu(t);var i=sn(ni.current);if(n=t.type,e!==null&&t.stateNode!=null)Wd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return he(t),null}if(e=sn(ft.current),Vi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ut]=t,r[ei]=o,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Q(Dr[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":ya(r,o),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Q("invalid",r);break;case"textarea":ga(r,o),Q("invalid",r)}ss(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var s=o[l];l==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Qi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Qi(r.textContent,s,e),i=["children",""+s]):Vr.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&Q("scroll",r)}switch(n){case"input":Ii(r),va(r,o,!0);break;case"textarea":Ii(r),wa(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=_o)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ut]=t,e[ei]=r,Vd(e,t,!1,!1),t.stateNode=e;e:{switch(l=us(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Q(Dr[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":ya(e,r),i=ns(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),Q("invalid",e);break;case"textarea":ga(e,r),i=os(e,r),Q("invalid",e);break;default:i=r}ss(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?kf(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Sf(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Wr(e,u):typeof u=="number"&&Wr(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Vr.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Q("scroll",e):u!=null&&pu(e,o,u,l))}switch(n){case"input":Ii(e),va(e,r,!1);break;case"textarea":Ii(e),wa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?jn(e,!!r.multiple,o,!1):r.defaultValue!=null&&jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_o)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return he(t),null;case 6:if(e&&t.stateNode!=null)Kd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=sn(ni.current),sn(ft.current),Vi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(o=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:Qi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return he(t),null;case 13:if(W(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&Fe!==null&&t.mode&1&&!(t.flags&128))ad(),sr(),t.flags|=98560,o=!1;else if(o=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[ut]=t}else sr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;he(t),o=!1}else Ze!==null&&($s(Ze),Ze=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?ie===0&&(ie=3):Xu())),t.updateQueue!==null&&(t.flags|=4),he(t),null);case 4:return ar(),As(e,t),e===null&&Zr(t.stateNode.containerInfo),he(t),null;case 10:return Lu(t.type._context),he(t),null;case 17:return Re(t.type)&&Po(),he(t),null;case 19:if(W(G),o=t.memoizedState,o===null)return he(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Pr(o,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Do(e),l!==null){for(t.flags|=128,Pr(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $(G,G.current&1|2),t.child}e=e.sibling}o.tail!==null&&b()>fr&&(t.flags|=128,r=!0,Pr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Do(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!K)return he(t),null}else 2*b()-o.renderingStartTime>fr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=b(),t.sibling=null,n=G.current,$(G,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return Gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Te&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Xm(e,t){switch(Ou(t),t.tag){case 1:return Re(t.type)&&Po(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),W(Pe),W(ye),Mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zu(t),null;case 13:if(W(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(G),null;case 4:return ar(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Gu(),null;case 24:return null;default:return null}}var qi=!1,me=!1,Jm=typeof WeakSet=="function"?WeakSet:Set,N=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Is(e,t,n){try{n()}catch(r){Y(e,t,r)}}var uc=!1;function Ym(e,t){if(gs=ko,e=Jf(),Pu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=l+i),f!==o||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++a===i&&(s=l),d===o&&++c===r&&(u=l),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ws={focusedElem:e,selectionRange:n},ko=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,k=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Xe(t.type,w),k);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(S){Y(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=uc,uc=!1,g}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Is(t,n,o)}i=i.next}while(i!==r)}}function el(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qd(e){var t=e.alternate;t!==null&&(e.alternate=null,qd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[ei],delete t[ks],delete t[Dm],delete t[Am])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gd(e){return e.tag===5||e.tag===3||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_o));else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function js(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(js(e,t,n),e=e.sibling;e!==null;)js(e,t,n),e=e.sibling}var ae=null,Ye=!1;function _t(e,t,n){for(n=n.child;n!==null;)Xd(e,t,n),n=n.sibling}function Xd(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ko,n)}catch{}switch(n.tag){case 5:me||zn(n,t);case 6:var r=ae,i=Ye;ae=null,_t(e,t,n),ae=r,Ye=i,ae!==null&&(Ye?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Ye?(e=ae,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Xr(e)):Dl(ae,n.stateNode));break;case 4:r=ae,i=Ye,ae=n.stateNode.containerInfo,Ye=!0,_t(e,t,n),ae=r,Ye=i;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Is(n,t,l),i=i.next}while(i!==r)}_t(e,t,n);break;case 1:if(!me&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Y(n,t,s)}_t(e,t,n);break;case 21:_t(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,_t(e,t,n),me=r):_t(e,t,n);break;default:_t(e,t,n)}}function cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jm),t.forEach(function(r){var i=ly.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:ae=s.stateNode,Ye=!1;break e;case 3:ae=s.stateNode.containerInfo,Ye=!0;break e;case 4:ae=s.stateNode.containerInfo,Ye=!0;break e}s=s.return}if(ae===null)throw Error(C(160));Xd(o,l,i),ae=null,Ye=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){Y(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jd(t,e),t=t.sibling}function Jd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),nt(e),r&4){try{Hr(3,e,e.return),el(3,e)}catch(w){Y(e,e.return,w)}try{Hr(5,e,e.return)}catch(w){Y(e,e.return,w)}}break;case 1:Ge(t,e),nt(e),r&512&&n!==null&&zn(n,n.return);break;case 5:if(Ge(t,e),nt(e),r&512&&n!==null&&zn(n,n.return),e.flags&32){var i=e.stateNode;try{Wr(i,"")}catch(w){Y(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&vf(i,o),us(s,l);var a=us(s,o);for(l=0;l<u.length;l+=2){var c=u[l],f=u[l+1];c==="style"?kf(i,f):c==="dangerouslySetInnerHTML"?Sf(i,f):c==="children"?Wr(i,f):pu(i,c,f,a)}switch(s){case"input":rs(i,o);break;case"textarea":gf(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?jn(i,!!o.multiple,m,!1):d!==!!o.multiple&&(o.defaultValue!=null?jn(i,!!o.multiple,o.defaultValue,!0):jn(i,!!o.multiple,o.multiple?[]:"",!1))}i[ei]=o}catch(w){Y(e,e.return,w)}}break;case 6:if(Ge(t,e),nt(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(w){Y(e,e.return,w)}}break;case 3:if(Ge(t,e),nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xr(t.containerInfo)}catch(w){Y(e,e.return,w)}break;case 4:Ge(t,e),nt(e);break;case 13:Ge(t,e),nt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ku=b())),r&4&&cc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(me=(a=me)||c,Ge(t,e),me=a):Ge(t,e),nt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(N=e,c=e.child;c!==null;){for(f=N=c;N!==null;){switch(d=N,m=d.child,d.tag){case 0:case 11:case 14:case 15:Hr(4,d,d.return);break;case 1:zn(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(w){Y(r,n,w)}}break;case 5:zn(d,d.return);break;case 22:if(d.memoizedState!==null){dc(f);continue}}m!==null?(m.return=d,N=m):dc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,a?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,u=f.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Ef("display",l))}catch(w){Y(e,e.return,w)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(w){Y(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ge(t,e),nt(e),r&4&&cc(e);break;case 21:break;default:Ge(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gd(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wr(i,""),r.flags&=-33);var o=ac(e);js(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,s=ac(e);Ms(e,s,l);break;default:throw Error(C(161))}}catch(u){Y(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zm(e,t,n){N=e,Yd(e)}function Yd(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||qi;if(!l){var s=i.alternate,u=s!==null&&s.memoizedState!==null||me;s=qi;var a=me;if(qi=l,(me=u)&&!a)for(N=i;N!==null;)l=N,u=l.child,l.tag===22&&l.memoizedState!==null?pc(i):u!==null?(u.return=l,N=u):pc(i);for(;o!==null;)N=o,Yd(o),o=o.sibling;N=i,qi=s,me=a}fc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,N=o):fc(e)}}function fc(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||el(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ga(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ga(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Xr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}me||t.flags&512&&zs(t)}catch(d){Y(t,t.return,d)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function dc(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function pc(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(u){Y(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Y(t,i,u)}}var o=t.return;try{zs(t)}catch(u){Y(t,o,u)}break;case 5:var l=t.return;try{zs(t)}catch(u){Y(t,l,u)}}}catch(u){Y(t,t.return,u)}if(t===e){N=null;break}var s=t.sibling;if(s!==null){s.return=t.return,N=s;break}N=t.return}}var bm=Math.ceil,zo=xt.ReactCurrentDispatcher,Vu=xt.ReactCurrentOwner,Qe=xt.ReactCurrentBatchConfig,U=0,ue=null,ee=null,fe=0,Te=0,Mn=Zt(0),ie=0,li=null,En=0,tl=0,Wu=0,$r=null,xe=null,Ku=0,fr=1/0,ht=null,Mo=!1,Us=null,Kt=null,Gi=!1,Bt=null,jo=0,Qr=0,Bs=null,lo=-1,so=0;function we(){return U&6?b():lo!==-1?lo:lo=b()}function qt(e){return e.mode&1?U&2&&fe!==0?fe&-fe:zm.transition!==null?(so===0&&(so=Af()),so):(e=H,e!==0||(e=window.event,e=e===void 0?16:Hf(e.type)),e):1}function et(e,t,n,r){if(50<Qr)throw Qr=0,Bs=null,Error(C(185));Ci(e,n,r),(!(U&2)||e!==ue)&&(e===ue&&(!(U&2)&&(tl|=n),ie===4&&Ft(e,fe)),Oe(e,r),n===1&&U===0&&!(t.mode&1)&&(fr=b()+500,Yo&&bt()))}function Oe(e,t){var n=e.callbackNode;zh(e,t);var r=Eo(e,e===ue?fe:0);if(r===0)n!==null&&ka(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ka(n),t===1)e.tag===0?Im(hc.bind(null,e)):ld(hc.bind(null,e)),Fm(function(){!(U&6)&&bt()}),n=null;else{switch(If(r)){case 1:n=gu;break;case 4:n=Lf;break;case 16:n=So;break;case 536870912:n=Df;break;default:n=So}n=op(n,Zd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zd(e,t){if(lo=-1,so=0,U&6)throw Error(C(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=Eo(e,e===ue?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Uo(e,r);else{t=r;var i=U;U|=2;var o=ep();(ue!==e||fe!==t)&&(ht=null,fr=b()+500,yn(e,t));do try{ny();break}catch(s){bd(e,s)}while(!0);Fu(),zo.current=o,U=i,ee!==null?t=0:(ue=null,fe=0,t=ie)}if(t!==0){if(t===2&&(i=ps(e),i!==0&&(r=i,t=Hs(e,i))),t===1)throw n=li,yn(e,0),Ft(e,r),Oe(e,b()),n;if(t===6)Ft(e,r);else{if(i=e.current.alternate,!(r&30)&&!ey(i)&&(t=Uo(e,r),t===2&&(o=ps(e),o!==0&&(r=o,t=Hs(e,o))),t===1))throw n=li,yn(e,0),Ft(e,r),Oe(e,b()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:rn(e,xe,ht);break;case 3:if(Ft(e,r),(r&130023424)===r&&(t=Ku+500-b(),10<t)){if(Eo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){we(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Es(rn.bind(null,e,xe,ht),t);break}rn(e,xe,ht);break;case 4:if(Ft(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-be(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=b()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bm(r/1960))-r,10<r){e.timeoutHandle=Es(rn.bind(null,e,xe,ht),r);break}rn(e,xe,ht);break;case 5:rn(e,xe,ht);break;default:throw Error(C(329))}}}return Oe(e,b()),e.callbackNode===n?Zd.bind(null,e):null}function Hs(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Uo(e,t),e!==2&&(t=xe,xe=n,t!==null&&$s(t)),e}function $s(e){xe===null?xe=e:xe.push.apply(xe,e)}function ey(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!tt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ft(e,t){for(t&=~Wu,t&=~tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-be(t),r=1<<n;e[n]=-1,t&=~r}}function hc(e){if(U&6)throw Error(C(327));Qn();var t=Eo(e,0);if(!(t&1))return Oe(e,b()),null;var n=Uo(e,t);if(e.tag!==0&&n===2){var r=ps(e);r!==0&&(t=r,n=Hs(e,r))}if(n===1)throw n=li,yn(e,0),Ft(e,t),Oe(e,b()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,xe,ht),Oe(e,b()),null}function qu(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(fr=b()+500,Yo&&bt())}}function kn(e){Bt!==null&&Bt.tag===0&&!(U&6)&&Qn();var t=U;U|=1;var n=Qe.transition,r=H;try{if(Qe.transition=null,H=1,e)return e()}finally{H=r,Qe.transition=n,U=t,!(U&6)&&bt()}}function Gu(){Te=Mn.current,W(Mn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tm(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(Ou(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Po();break;case 3:ar(),W(Pe),W(ye),Mu();break;case 5:zu(r);break;case 4:ar();break;case 13:W(G);break;case 19:W(G);break;case 10:Lu(r.type._context);break;case 22:case 23:Gu()}n=n.return}if(ue=e,ee=e=Gt(e.current,null),fe=Te=t,ie=0,li=null,Wu=tl=En=0,xe=$r=null,ln!==null){for(t=0;t<ln.length;t++)if(n=ln[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}ln=null}return e}function bd(e,t){do{var n=ee;try{if(Fu(),ro.current=Io,Ao){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ao=!1}if(Sn=0,se=ne=X=null,Br=!1,ri=0,Vu.current=null,n===null||n.return===null){ie=1,li=t,ee=null;break}e:{var o=e,l=n.return,s=n,u=t;if(t=fe,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=tc(l);if(m!==null){m.flags&=-257,nc(m,l,s,o,t),m.mode&1&&ec(o,a,t),t=m,u=a;var g=t.updateQueue;if(g===null){var w=new Set;w.add(u),t.updateQueue=w}else g.add(u);break e}else{if(!(t&1)){ec(o,a,t),Xu();break e}u=Error(C(426))}}else if(K&&s.mode&1){var k=tc(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),nc(k,l,s,o,t),Nu(cr(u,s));break e}}o=u=cr(u,s),ie!==4&&(ie=2),$r===null?$r=[o]:$r.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=zd(o,u,t);qa(o,p);break e;case 1:s=u;var h=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Kt===null||!Kt.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Md(o,s,t);qa(o,S);break e}}o=o.return}while(o!==null)}np(n)}catch(x){t=x,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function ep(){var e=zo.current;return zo.current=Io,e===null?Io:e}function Xu(){(ie===0||ie===3||ie===2)&&(ie=4),ue===null||!(En&268435455)&&!(tl&268435455)||Ft(ue,fe)}function Uo(e,t){var n=U;U|=2;var r=ep();(ue!==e||fe!==t)&&(ht=null,yn(e,t));do try{ty();break}catch(i){bd(e,i)}while(!0);if(Fu(),U=n,zo.current=r,ee!==null)throw Error(C(261));return ue=null,fe=0,ie}function ty(){for(;ee!==null;)tp(ee)}function ny(){for(;ee!==null&&!Rh();)tp(ee)}function tp(e){var t=ip(e.alternate,e,Te);e.memoizedProps=e.pendingProps,t===null?np(e):ee=t,Vu.current=null}function np(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Xm(n,t),n!==null){n.flags&=32767,ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,ee=null;return}}else if(n=Gm(n,t,Te),n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);ie===0&&(ie=5)}function rn(e,t,n){var r=H,i=Qe.transition;try{Qe.transition=null,H=1,ry(e,t,n,r)}finally{Qe.transition=i,H=r}return null}function ry(e,t,n,r){do Qn();while(Bt!==null);if(U&6)throw Error(C(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Mh(e,o),e===ue&&(ee=ue=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gi||(Gi=!0,op(So,function(){return Qn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Qe.transition,Qe.transition=null;var l=H;H=1;var s=U;U|=4,Vu.current=null,Ym(e,n),Jd(n,e),Cm(ws),ko=!!gs,ws=gs=null,e.current=n,Zm(n),Oh(),U=s,H=l,Qe.transition=o}else e.current=n;if(Gi&&(Gi=!1,Bt=e,jo=i),o=e.pendingLanes,o===0&&(Kt=null),Fh(n.stateNode),Oe(e,b()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Mo)throw Mo=!1,e=Us,Us=null,e;return jo&1&&e.tag!==0&&Qn(),o=e.pendingLanes,o&1?e===Bs?Qr++:(Qr=0,Bs=e):Qr=0,bt(),null}function Qn(){if(Bt!==null){var e=If(jo),t=Qe.transition,n=H;try{if(Qe.transition=null,H=16>e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,jo=0,U&6)throw Error(C(331));var i=U;for(U|=4,N=e.current;N!==null;){var o=N,l=o.child;if(N.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(N=a;N!==null;){var c=N;switch(c.tag){case 0:case 11:case 15:Hr(8,c,o)}var f=c.child;if(f!==null)f.return=c,N=f;else for(;N!==null;){c=N;var d=c.sibling,m=c.return;if(qd(c),c===a){N=null;break}if(d!==null){d.return=m,N=d;break}N=m}}}var g=o.alternate;if(g!==null){var w=g.child;if(w!==null){g.child=null;do{var k=w.sibling;w.sibling=null,w=k}while(w!==null)}}N=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,N=l;else e:for(;N!==null;){if(o=N,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Hr(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,N=p;break e}N=o.return}}var h=e.current;for(N=h;N!==null;){l=N;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,N=y;else e:for(l=h;N!==null;){if(s=N,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:el(9,s)}}catch(x){Y(s,s.return,x)}if(s===l){N=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,N=S;break e}N=s.return}}if(U=i,bt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ko,e)}catch{}r=!0}return r}finally{H=n,Qe.transition=t}}return!1}function mc(e,t,n){t=cr(n,t),t=zd(e,t,1),e=Wt(e,t,1),t=we(),e!==null&&(Ci(e,1,t),Oe(e,t))}function Y(e,t,n){if(e.tag===3)mc(e,e,n);else for(;t!==null;){if(t.tag===3){mc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kt===null||!Kt.has(r))){e=cr(n,e),e=Md(t,e,1),t=Wt(t,e,1),e=we(),t!==null&&(Ci(t,1,e),Oe(t,e));break}}t=t.return}}function iy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=we(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(fe&n)===n&&(ie===4||ie===3&&(fe&130023424)===fe&&500>b()-Ku?yn(e,0):Wu|=n),Oe(e,t)}function rp(e,t){t===0&&(e.mode&1?(t=ji,ji<<=1,!(ji&130023424)&&(ji=4194304)):t=1);var n=we();e=kt(e,t),e!==null&&(Ci(e,t,n),Oe(e,n))}function oy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rp(e,n)}function ly(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),rp(e,n)}var ip;ip=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,qm(e,t,n);_e=!!(e.flags&131072)}else _e=!1,K&&t.flags&1048576&&sd(t,No,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oo(e,t),e=t.pendingProps;var i=lr(t,ye.current);$n(t,n),i=Uu(null,t,r,e,i,n);var o=Bu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(o=!0,Ro(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Au(t),i.updater=Zo,t.stateNode=i,i._reactInternals=t,Os(t,r,e,n),t=Fs(null,t,r,!0,o,n)):(t.tag=0,K&&o&&Ru(t),ge(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uy(r),e=Xe(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=oc(null,t,r,e,n);break e;case 11:t=rc(null,t,r,e,n);break e;case 14:t=ic(null,t,r,Xe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),oc(e,t,r,i,n);case 3:e:{if(Hd(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,fd(e,t),Lo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=cr(Error(C(423)),t),t=lc(e,t,r,n,i);break e}else if(r!==i){i=cr(Error(C(424)),t),t=lc(e,t,r,n,i);break e}else for(Fe=Vt(t.stateNode.containerInfo.firstChild),Le=t,K=!0,Ze=null,n=md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sr(),r===i){t=Ct(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return yd(t),e===null&&_s(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ss(r,i)?l=null:o!==null&&Ss(r,o)&&(t.flags|=32),Bd(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&_s(t),null;case 13:return $d(e,t,n);case 4:return Iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),rc(e,t,r,i,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,$(To,r._currentValue),r._currentValue=l,o!==null)if(tt(o.value,l)){if(o.children===i.children&&!Pe.current){t=Ct(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=gt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ps(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(C(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ps(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$n(t,n),i=We(i),r=r(i),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,i=Xe(r,t.pendingProps),i=Xe(r.type,i),ic(e,t,r,i,n);case 15:return jd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),oo(e,t),t.tag=1,Re(r)?(e=!0,Ro(t)):e=!1,$n(t,n),pd(t,r,i),Os(t,r,i,n),Fs(null,t,r,!0,e,n);case 19:return Qd(e,t,n);case 22:return Ud(e,t,n)}throw Error(C(156,t.tag))};function op(e,t){return Ff(e,t)}function sy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(e,t,n,r){return new sy(e,t,n,r)}function Ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uy(e){if(typeof e=="function")return Ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mu)return 11;if(e===yu)return 14}return 2}function Gt(e,t){var n=e.alternate;return n===null?(n=$e(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ju(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Rn:return vn(n.children,i,o,t);case hu:l=8,i|=8;break;case Zl:return e=$e(12,n,t,i|2),e.elementType=Zl,e.lanes=o,e;case bl:return e=$e(13,n,t,i),e.elementType=bl,e.lanes=o,e;case es:return e=$e(19,n,t,i),e.elementType=es,e.lanes=o,e;case hf:return nl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:l=10;break e;case pf:l=9;break e;case mu:l=11;break e;case yu:l=14;break e;case Ot:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=$e(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vn(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function nl(e,t,n,r){return e=$e(22,e,r,t),e.elementType=hf,e.lanes=n,e.stateNode={isHidden:!1},e}function Hl(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ay(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,i,o,l,s,u){return e=new ay(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=$e(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Au(o),e}function cy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lp(e){if(!e)return Jt;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Re(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Re(n))return od(e,n,t)}return t}function sp(e,t,n,r,i,o,l,s,u){return e=Yu(n,r,!0,e,i,o,l,s,u),e.context=lp(null),n=e.current,r=we(),i=qt(n),o=gt(r,i),o.callback=t??null,Wt(n,o,i),e.current.lanes=i,Ci(e,i,r),Oe(e,r),e}function rl(e,t,n,r){var i=t.current,o=we(),l=qt(i);return n=lp(n),t.context===null?t.context=n:t.pendingContext=n,t=gt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wt(i,t,l),e!==null&&(et(e,i,l,o),no(e,i,l)),l}function Bo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zu(e,t){yc(e,t),(e=e.alternate)&&yc(e,t)}function fy(){return null}var up=typeof reportError=="function"?reportError:function(e){console.error(e)};function bu(e){this._internalRoot=e}il.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));rl(e,t,null,null)};il.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kn(function(){rl(null,e,null,null)}),t[Et]=null}};function il(e){this._internalRoot=e}il.prototype.unstable_scheduleHydration=function(e){if(e){var t=jf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&t!==0&&t<Tt[n].priority;n++);Tt.splice(n,0,e),n===0&&Bf(e)}};function ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vc(){}function dy(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var a=Bo(l);o.call(a)}}var l=sp(t,r,e,0,null,!1,!1,"",vc);return e._reactRootContainer=l,e[Et]=l.current,Zr(e.nodeType===8?e.parentNode:e),kn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var a=Bo(u);s.call(a)}}var u=Yu(e,0,!1,null,null,!1,!1,"",vc);return e._reactRootContainer=u,e[Et]=u.current,Zr(e.nodeType===8?e.parentNode:e),kn(function(){rl(t,u,n,r)}),u}function ll(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var s=i;i=function(){var u=Bo(l);s.call(u)}}rl(t,l,e,i)}else l=dy(n,t,e,i,r);return Bo(l)}zf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lr(t.pendingLanes);n!==0&&(wu(t,n|1),Oe(t,b()),!(U&6)&&(fr=b()+500,bt()))}break;case 13:kn(function(){var r=kt(e,1);if(r!==null){var i=we();et(r,e,1,i)}}),Zu(e,1)}};Su=function(e){if(e.tag===13){var t=kt(e,134217728);if(t!==null){var n=we();et(t,e,134217728,n)}Zu(e,134217728)}};Mf=function(e){if(e.tag===13){var t=qt(e),n=kt(e,t);if(n!==null){var r=we();et(n,e,t,r)}Zu(e,t)}};jf=function(){return H};Uf=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};cs=function(e,t,n){switch(t){case"input":if(rs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Jo(r);if(!i)throw Error(C(90));yf(r),rs(r,i)}}}break;case"textarea":gf(e,n);break;case"select":t=n.value,t!=null&&jn(e,!!n.multiple,t,!1)}};_f=qu;Pf=kn;var py={usingClientEntryPoint:!1,Events:[_i,Fn,Jo,Cf,xf,qu]},Rr={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hy={bundleType:Rr.bundleType,version:Rr.version,rendererPackageName:Rr.rendererPackageName,rendererConfig:Rr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Nf(e),e===null?null:e.stateNode},findFiberByHostInstance:Rr.findFiberByHostInstance||fy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xi.isDisabled&&Xi.supportsFiber)try{Ko=Xi.inject(hy),ct=Xi}catch{}}Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=py;Ae.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ea(t))throw Error(C(200));return cy(e,t,null,n)};Ae.createRoot=function(e,t){if(!ea(e))throw Error(C(299));var n=!1,r="",i=up;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Yu(e,1,!1,null,null,n,!1,r,i),e[Et]=t.current,Zr(e.nodeType===8?e.parentNode:e),new bu(t)};Ae.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Nf(t),e=e===null?null:e.stateNode,e};Ae.flushSync=function(e){return kn(e)};Ae.hydrate=function(e,t,n){if(!ol(t))throw Error(C(200));return ll(null,e,t,!0,n)};Ae.hydrateRoot=function(e,t,n){if(!ea(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=up;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=sp(t,null,e,1,n??null,i,!1,o,l),e[Et]=t.current,Zr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new il(t)};Ae.render=function(e,t,n){if(!ol(t))throw Error(C(200));return ll(null,e,t,!1,n)};Ae.unmountComponentAtNode=function(e){if(!ol(e))throw Error(C(40));return e._reactRootContainer?(kn(function(){ll(null,null,e,!1,function(){e._reactRootContainer=null,e[Et]=null})}),!0):!1};Ae.unstable_batchedUpdates=qu;Ae.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return ll(e,t,n,!1,r)};Ae.version="18.2.0-next-9e3b772b8-20220608";function ap(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ap)}catch(e){console.error(e)}}ap(),sf.exports=Ae;var my=sf.exports,gc=my;Jl.createRoot=gc.createRoot,Jl.hydrateRoot=gc.hydrateRoot;var Ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dr=typeof window>"u"||"Deno"in window;function Ue(){}function yy(e,t){return typeof e=="function"?e(t):e}function Qs(e){return typeof e=="number"&&e>=0&&e!==1/0}function cp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:s}=e;if(l){if(r){if(t.queryHash!==ta(l,t.options))return!1}else if(!ui(t.queryKey,l))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Sc(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(si(t.options.mutationKey)!==si(o))return!1}else if(!ui(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ta(e,t){return((t==null?void 0:t.queryKeyHashFn)||si)(e)}function si(e){return JSON.stringify(e,(t,n)=>Ws(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ui(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ui(e[n],t[n])):!1}function fp(e,t){if(e===t)return e;const n=Ec(e)&&Ec(t);if(n||Ws(e)&&Ws(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),l=o.length,s=n?[]:{};let u=0;for(let a=0;a<l;a++){const c=n?a:o[a];!n&&e[c]===void 0&&t[c]===void 0&&r.includes(c)?(s[c]=void 0,u++):(s[c]=fp(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&u++)}return i===l&&u===i?e:s}return t}function Vs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ec(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ws(e){if(!kc(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!kc(n)||!n.hasOwnProperty("isPrototypeOf"))}function kc(e){return Object.prototype.toString.call(e)==="[object Object]"}function vy(e){return new Promise(t=>{setTimeout(t,e)})}function Ks(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fp(e,t):t}function gy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var un,Lt,Vn,Hc,Sy=(Hc=class extends Ri{constructor(){super();F(this,un,void 0);F(this,Lt,void 0);F(this,Vn,void 0);O(this,Vn,t=>{if(!dr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,Lt)||this.setEventListener(v(this,Vn))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Lt))==null||t.call(this),O(this,Lt,void 0))}setEventListener(t){var n;O(this,Vn,t),(n=v(this,Lt))==null||n.call(this),O(this,Lt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,un)!==t&&(O(this,un,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof v(this,un)=="boolean"?v(this,un):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},un=new WeakMap,Lt=new WeakMap,Vn=new WeakMap,Hc),Ho=new Sy,Wn,Dt,Kn,$c,Ey=($c=class extends Ri{constructor(){super();F(this,Wn,!0);F(this,Dt,void 0);F(this,Kn,void 0);O(this,Kn,t=>{if(!dr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,Dt)||this.setEventListener(v(this,Kn))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Dt))==null||t.call(this),O(this,Dt,void 0))}setEventListener(t){var n;O(this,Kn,t),(n=v(this,Dt))==null||n.call(this),O(this,Dt,t(this.setOnline.bind(this)))}setOnline(t){v(this,Wn)!==t&&(O(this,Wn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Wn)}},Wn=new WeakMap,Dt=new WeakMap,Kn=new WeakMap,$c),$o=new Ey;function ky(e){return Math.min(1e3*2**e,3e4)}function sl(e){return(e??"online")==="online"?$o.isOnline():!0}var dp=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ql(e){return e instanceof dp}function pp(e){let t=!1,n=0,r=!1,i,o,l;const s=new Promise((k,p)=>{o=k,l=p}),u=k=>{var p;r||(m(new dp(k)),(p=e.abort)==null||p.call(e))},a=()=>{t=!0},c=()=>{t=!1},f=()=>!Ho.isFocused()||e.networkMode!=="always"&&!$o.isOnline(),d=k=>{var p;r||(r=!0,(p=e.onSuccess)==null||p.call(e,k),i==null||i(),o(k))},m=k=>{var p;r||(r=!0,(p=e.onError)==null||p.call(e,k),i==null||i(),l(k))},g=()=>new Promise(k=>{var p;i=h=>{const y=r||!f();return y&&k(h),y},(p=e.onPause)==null||p.call(e)}).then(()=>{var k;i=void 0,r||(k=e.onContinue)==null||k.call(e)}),w=()=>{if(r)return;let k;try{k=e.fn()}catch(p){k=Promise.reject(p)}Promise.resolve(k).then(d).catch(p=>{var R;if(r)return;const h=e.retry??(dr?0:3),y=e.retryDelay??ky,S=typeof y=="function"?y(n,p):y,x=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!x){m(p);return}n++,(R=e.onFail)==null||R.call(e,n,p),vy(S).then(()=>{if(f())return g()}).then(()=>{t?m(p):w()})})};return sl(e.networkMode)?w():g().then(w),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:a,continueRetry:c}}function Cy(){let e=[],t=0,n=d=>{d()},r=d=>{d()},i=d=>setTimeout(d,0);const o=d=>{i=d},l=d=>{let m;t++;try{m=d()}finally{t--,t||a()}return m},s=d=>{t?e.push(d):i(()=>{n(d)})},u=d=>(...m)=>{s(()=>{d(...m)})},a=()=>{const d=e;e=[],d.length&&i(()=>{r(()=>{d.forEach(m=>{n(m)})})})};return{batch:l,batchCalls:u,schedule:s,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:o}}var ce=Cy(),an,Qc,hp=(Qc=class{constructor(){F(this,an,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qs(this.gcTime)&&O(this,an,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dr?1/0:5*60*1e3))}clearGcTimeout(){v(this,an)&&(clearTimeout(v(this,an)),O(this,an,void 0))}},an=new WeakMap,Qc),qn,Gn,ze,At,Me,le,ci,cn,Xn,ao,Je,pt,Vc,xy=(Vc=class extends hp{constructor(t){super();F(this,Xn);F(this,Je);F(this,qn,void 0);F(this,Gn,void 0);F(this,ze,void 0);F(this,At,void 0);F(this,Me,void 0);F(this,le,void 0);F(this,ci,void 0);F(this,cn,void 0);O(this,cn,!1),O(this,ci,t.defaultOptions),I(this,Xn,ao).call(this,t.options),O(this,le,[]),O(this,ze,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,qn,t.state||_y(this.options)),this.state=v(this,qn),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!v(this,le).length&&this.state.fetchStatus==="idle"&&v(this,ze).remove(this)}setData(t,n){const r=Ks(this.state.data,t,this.options);return I(this,Je,pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){I(this,Je,pt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=v(this,At);return(r=v(this,Me))==null||r.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,qn))}isActive(){return v(this,le).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||v(this,le).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!cp(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=v(this,le).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Me))==null||n.continue()}onOnline(){var n;const t=v(this,le).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Me))==null||n.continue()}addObserver(t){v(this,le).includes(t)||(v(this,le).push(t),this.clearGcTimeout(),v(this,ze).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){v(this,le).includes(t)&&(O(this,le,v(this,le).filter(n=>n!==t)),v(this,le).length||(v(this,Me)&&(v(this,cn)?v(this,Me).cancel({revert:!0}):v(this,Me).cancelRetry()),this.scheduleGc()),v(this,ze).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return v(this,le).length}invalidate(){this.state.isInvalidated||I(this,Je,pt).call(this,{type:"invalidate"})}fetch(t,n){var a,c,f,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,At))return(a=v(this,Me))==null||a.continueRetry(),v(this,At)}if(t&&I(this,Xn,ao).call(this,t),!this.options.queryFn){const m=v(this,le).find(g=>g.options.queryFn);m&&I(this,Xn,ao).call(this,m.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(O(this,cn,!0),r.signal)})};o(i);const l=()=>this.options.queryFn?(O(this,cn,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),O(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&I(this,Je,pt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const u=m=>{var g,w,k,p;Ql(m)&&m.silent||I(this,Je,pt).call(this,{type:"error",error:m}),Ql(m)||((w=(g=v(this,ze).config).onError)==null||w.call(g,m,this),(p=(k=v(this,ze).config).onSettled)==null||p.call(k,this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return O(this,Me,pp({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,w,k,p;if(typeof m>"u"){u(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),(w=(g=v(this,ze).config).onSuccess)==null||w.call(g,m,this),(p=(k=v(this,ze).config).onSettled)==null||p.call(k,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(m,g)=>{I(this,Je,pt).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{I(this,Je,pt).call(this,{type:"pause"})},onContinue:()=>{I(this,Je,pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),O(this,At,v(this,Me).promise),v(this,At)}},qn=new WeakMap,Gn=new WeakMap,ze=new WeakMap,At=new WeakMap,Me=new WeakMap,le=new WeakMap,ci=new WeakMap,cn=new WeakMap,Xn=new WeakSet,ao=function(t){this.options={...v(this,ci),...t},this.updateGcTime(this.options.gcTime)},Je=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:sl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Ql(i)&&i.revert&&v(this,Gn)?{...v(this,Gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ce.batch(()=>{v(this,le).forEach(r=>{r.onQueryUpdate()}),v(this,ze).notify({query:this,type:"updated",action:t})})},Vc);function _y(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var it,Wc,Py=(Wc=class extends Ri{constructor(t={}){super();F(this,it,void 0);this.config=t,O(this,it,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??ta(i,n);let l=this.get(o);return l||(l=new xy({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){v(this,it).has(t.queryHash)||(v(this,it).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,it).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,it).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ce.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,it).get(t)}getAll(){return[...v(this,it).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wc(t,r)):n}notify(t){ce.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ce.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ce.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},it=new WeakMap,Wc),ot,fi,Ne,Jn,lt,Rt,Kc,Ry=(Kc=class extends hp{constructor(t){super();F(this,lt);F(this,ot,void 0);F(this,fi,void 0);F(this,Ne,void 0);F(this,Jn,void 0);this.mutationId=t.mutationId,O(this,fi,t.defaultOptions),O(this,Ne,t.mutationCache),O(this,ot,[]),this.state=t.state||Oy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...v(this,fi),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,ot).includes(t)||(v(this,ot).push(t),this.clearGcTimeout(),v(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,ot,v(this,ot).filter(n=>n!==t)),this.scheduleGc(),v(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,ot).length||(this.state.status==="pending"?this.scheduleGc():v(this,Ne).remove(this))}continue(){var t;return((t=v(this,Jn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,s,u,a,c,f,d,m,g,w,k,p,h,y,S,x,R,P;const n=()=>(O(this,Jn,pp({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,B)=>{I(this,lt,Rt).call(this,{type:"failed",failureCount:_,error:B})},onPause:()=>{I(this,lt,Rt).call(this,{type:"pause"})},onContinue:()=>{I(this,lt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),v(this,Jn).promise),r=this.state.status==="pending";try{if(!r){I(this,lt,Rt).call(this,{type:"pending",variables:t}),await((o=(i=v(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const B=await((s=(l=this.options).onMutate)==null?void 0:s.call(l,t));B!==this.state.context&&I(this,lt,Rt).call(this,{type:"pending",context:B,variables:t})}const _=await n();return await((a=(u=v(this,Ne).config).onSuccess)==null?void 0:a.call(u,_,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,_,t,this.state.context)),await((m=(d=v(this,Ne).config).onSettled)==null?void 0:m.call(d,_,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,_,null,t,this.state.context)),I(this,lt,Rt).call(this,{type:"success",data:_}),_}catch(_){try{throw await((p=(k=v(this,Ne).config).onError)==null?void 0:p.call(k,_,t,this.state.context,this)),await((y=(h=this.options).onError)==null?void 0:y.call(h,_,t,this.state.context)),await((x=(S=v(this,Ne).config).onSettled)==null?void 0:x.call(S,void 0,_,this.state.variables,this.state.context,this)),await((P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,_,t,this.state.context)),_}finally{I(this,lt,Rt).call(this,{type:"error",error:_})}}}},ot=new WeakMap,fi=new WeakMap,Ne=new WeakMap,Jn=new WeakMap,lt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!sl(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ce.batch(()=>{v(this,ot).forEach(r=>{r.onMutationUpdate(t)}),v(this,Ne).notify({mutation:this,type:"updated",action:t})})},Kc);function Oy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var je,di,fn,qc,Ny=(qc=class extends Ri{constructor(t={}){super();F(this,je,void 0);F(this,di,void 0);F(this,fn,void 0);this.config=t,O(this,je,[]),O(this,di,0)}build(t,n,r){const i=new Ry({mutationCache:this,mutationId:++Li(this,di)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){v(this,je).push(t),this.notify({type:"added",mutation:t})}remove(t){O(this,je,v(this,je).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){ce.batch(()=>{v(this,je).forEach(t=>{this.remove(t)})})}getAll(){return v(this,je)}find(t){const n={exact:!0,...t};return v(this,je).find(r=>Sc(n,r))}findAll(t={}){return v(this,je).filter(n=>Sc(t,n))}notify(t){ce.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return O(this,fn,(v(this,fn)??Promise.resolve()).then(()=>{const t=v(this,je).filter(n=>n.state.isPaused);return ce.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Ue)),Promise.resolve()))}).then(()=>{O(this,fn,void 0)})),v(this,fn)}},je=new WeakMap,di=new WeakMap,fn=new WeakMap,qc);function Ty(e){return{onFetch:(t,n)=>{const r=async()=>{var g,w,k,p,h;const i=t.options,o=(k=(w=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:w.fetchMore)==null?void 0:k.direction,l=((p=t.state.data)==null?void 0:p.pages)||[],s=((h=t.state.data)==null?void 0:h.pageParams)||[],u={pages:[],pageParams:[]};let a=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?a=!0:t.signal.addEventListener("abort",()=>{a=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),d=async(y,S,x)=>{if(a)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const R={queryKey:t.queryKey,pageParam:S,direction:x?"backward":"forward",meta:t.options.meta};c(R);const P=await f(R),{maxPages:_}=t.options,B=x?wy:gy;return{pages:B(y.pages,P,_),pageParams:B(y.pageParams,S,_)}};let m;if(o&&l.length){const y=o==="backward",S=y?Fy:Cc,x={pages:l,pageParams:s},R=S(i,x);m=await d(x,R,y)}else{m=await d(u,s[0]??i.initialPageParam);const y=e??l.length;for(let S=1;S<y;S++){const x=Cc(i,m);m=await d(m,x)}}return m};t.options.persister?t.fetchFn=()=>{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Cc(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Fy(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var te,It,zt,Yn,Zn,Mt,bn,er,Gc,Ly=(Gc=class{constructor(e={}){F(this,te,void 0);F(this,It,void 0);F(this,zt,void 0);F(this,Yn,void 0);F(this,Zn,void 0);F(this,Mt,void 0);F(this,bn,void 0);F(this,er,void 0);O(this,te,e.queryCache||new Py),O(this,It,e.mutationCache||new Ny),O(this,zt,e.defaultOptions||{}),O(this,Yn,new Map),O(this,Zn,new Map),O(this,Mt,0)}mount(){Li(this,Mt)._++,v(this,Mt)===1&&(O(this,bn,Ho.subscribe(()=>{Ho.isFocused()&&(this.resumePausedMutations(),v(this,te).onFocus())})),O(this,er,$o.subscribe(()=>{$o.isOnline()&&(this.resumePausedMutations(),v(this,te).onOnline())})))}unmount(){var e,t;Li(this,Mt)._--,v(this,Mt)===0&&((e=v(this,bn))==null||e.call(this),O(this,bn,void 0),(t=v(this,er))==null||t.call(this),O(this,er,void 0))}isFetching(e){return v(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,It).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=v(this,te).get(r.queryHash),o=i==null?void 0:i.state.data,l=yy(t,o);if(!(typeof l>"u"))return v(this,te).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return ce.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,te);ce.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,te),r={type:"active",...e};return ce.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ce.batch(()=>v(this,te).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return ce.batch(()=>{if(v(this,te).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ce.batch(()=>v(this,te).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=v(this,te).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Ty(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}resumePausedMutations(){return v(this,It).resumePausedMutations()}getQueryCache(){return v(this,te)}getMutationCache(){return v(this,It)}getDefaultOptions(){return v(this,zt)}setDefaultOptions(e){O(this,zt,e)}setQueryDefaults(e,t){v(this,Yn).set(si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Yn).values()];let n={};return t.forEach(r=>{ui(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){v(this,Zn).set(si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Zn).values()];let n={};return t.forEach(r=>{ui(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,zt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ta(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,zt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,te).clear(),v(this,It).clear()}},te=new WeakMap,It=new WeakMap,zt=new WeakMap,Yn=new WeakMap,Zn=new WeakMap,Mt=new WeakMap,bn=new WeakMap,er=new WeakMap,Gc),Ce,V,pi,ve,dn,tr,st,hi,nr,rr,pn,hn,jt,ir,mn,Ar,mi,qs,yi,Gs,vi,Xs,gi,Js,wi,Ys,Si,Zs,Ei,bs,Vo,mp,Xc,Dy=(Xc=class extends Ri{constructor(t,n){super();F(this,mn);F(this,mi);F(this,yi);F(this,vi);F(this,gi);F(this,wi);F(this,Si);F(this,Ei);F(this,Vo);F(this,Ce,void 0);F(this,V,void 0);F(this,pi,void 0);F(this,ve,void 0);F(this,dn,void 0);F(this,tr,void 0);F(this,st,void 0);F(this,hi,void 0);F(this,nr,void 0);F(this,rr,void 0);F(this,pn,void 0);F(this,hn,void 0);F(this,jt,void 0);F(this,ir,new Set);this.options=n,O(this,Ce,t),O(this,st,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,V).addObserver(this),xc(v(this,V),this.options)?I(this,mn,Ar).call(this):this.updateResult(),I(this,gi,Js).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(v(this,V),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(v(this,V),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,I(this,wi,Ys).call(this),I(this,Si,Zs).call(this),v(this,V).removeObserver(this)}setOptions(t,n){const r=this.options,i=v(this,V);if(this.options=v(this,Ce).defaultQueryOptions(t),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");I(this,Ei,bs).call(this),Vs(this.options,r)||v(this,Ce).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,V),observer:this});const o=this.hasListeners();o&&_c(v(this,V),i,this.options,r)&&I(this,mn,Ar).call(this),this.updateResult(n),o&&(v(this,V)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&I(this,mi,qs).call(this);const l=I(this,yi,Gs).call(this);o&&(v(this,V)!==i||this.options.enabled!==r.enabled||l!==v(this,jt))&&I(this,vi,Xs).call(this,l)}getOptimisticResult(t){const n=v(this,Ce).getQueryCache().build(v(this,Ce),t),r=this.createResult(n,t);return Iy(this,r)&&(O(this,ve,r),O(this,tr,this.options),O(this,dn,v(this,V).state)),r}getCurrentResult(){return v(this,ve)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(v(this,ir).add(r),t[r])})}),n}getCurrentQuery(){return v(this,V)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,Ce).defaultQueryOptions(t),r=v(this,Ce).getQueryCache().build(v(this,Ce),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return I(this,mn,Ar).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ve)))}createResult(t,n){var R;const r=v(this,V),i=this.options,o=v(this,ve),l=v(this,dn),s=v(this,tr),a=t!==r?t.state:v(this,pi),{state:c}=t;let{error:f,errorUpdatedAt:d,fetchStatus:m,status:g}=c,w=!1,k;if(n._optimisticResults){const P=this.hasListeners(),_=!P&&xc(t,n),B=P&&_c(t,r,n,i);(_||B)&&(m=sl(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(g="pending")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(l==null?void 0:l.data)&&n.select===v(this,hi))k=v(this,nr);else try{O(this,hi,n.select),k=n.select(c.data),k=Ks(o==null?void 0:o.data,k,n),O(this,nr,k),O(this,st,null)}catch(P){O(this,st,P)}else k=c.data;if(typeof n.placeholderData<"u"&&typeof k>"u"&&g==="pending"){let P;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))P=o.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData((R=v(this,rr))==null?void 0:R.state.data,v(this,rr)):n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),O(this,st,null)}catch(_){O(this,st,_)}typeof P<"u"&&(g="success",k=Ks(o==null?void 0:o.data,P,n),w=!0)}v(this,st)&&(f=v(this,st),k=v(this,nr),d=Date.now(),g="error");const p=m==="fetching",h=g==="pending",y=g==="error",S=h&&p;return{status:g,fetchStatus:m,isPending:h,isSuccess:g==="success",isError:y,isInitialLoading:S,isLoading:S,data:k,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:p,isRefetching:p&&!h,isLoadingError:y&&c.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:w,isRefetchError:y&&c.dataUpdatedAt!==0,isStale:na(t,n),refetch:this.refetch}}updateResult(t){const n=v(this,ve),r=this.createResult(v(this,V),this.options);if(O(this,dn,v(this,V).state),O(this,tr,this.options),v(this,dn).data!==void 0&&O(this,rr,v(this,V)),Vs(r,n))return;O(this,ve,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!v(this,ir).size)return!0;const u=new Set(s??v(this,ir));return this.options.throwOnError&&u.add("error"),Object.keys(v(this,ve)).some(a=>{const c=a;return v(this,ve)[c]!==n[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),I(this,Vo,mp).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&I(this,gi,Js).call(this)}},Ce=new WeakMap,V=new WeakMap,pi=new WeakMap,ve=new WeakMap,dn=new WeakMap,tr=new WeakMap,st=new WeakMap,hi=new WeakMap,nr=new WeakMap,rr=new WeakMap,pn=new WeakMap,hn=new WeakMap,jt=new WeakMap,ir=new WeakMap,mn=new WeakSet,Ar=function(t){I(this,Ei,bs).call(this);let n=v(this,V).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},mi=new WeakSet,qs=function(){if(I(this,wi,Ys).call(this),dr||v(this,ve).isStale||!Qs(this.options.staleTime))return;const n=cp(v(this,ve).dataUpdatedAt,this.options.staleTime)+1;O(this,pn,setTimeout(()=>{v(this,ve).isStale||this.updateResult()},n))},yi=new WeakSet,Gs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,V)):this.options.refetchInterval)??!1},vi=new WeakSet,Xs=function(t){I(this,Si,Zs).call(this),O(this,jt,t),!(dr||this.options.enabled===!1||!Qs(v(this,jt))||v(this,jt)===0)&&O(this,hn,setInterval(()=>{(this.options.refetchIntervalInBackground||Ho.isFocused())&&I(this,mn,Ar).call(this)},v(this,jt)))},gi=new WeakSet,Js=function(){I(this,mi,qs).call(this),I(this,vi,Xs).call(this,I(this,yi,Gs).call(this))},wi=new WeakSet,Ys=function(){v(this,pn)&&(clearTimeout(v(this,pn)),O(this,pn,void 0))},Si=new WeakSet,Zs=function(){v(this,hn)&&(clearInterval(v(this,hn)),O(this,hn,void 0))},Ei=new WeakSet,bs=function(){const t=v(this,Ce).getQueryCache().build(v(this,Ce),this.options);if(t===v(this,V))return;const n=v(this,V);O(this,V,t),O(this,pi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Vo=new WeakSet,mp=function(t){ce.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,ve))}),v(this,Ce).getQueryCache().notify({query:v(this,V),type:"observerResultsUpdated"})})},Xc);function Ay(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xc(e,t){return Ay(e,t)||e.state.dataUpdatedAt>0&&eu(e,t,t.refetchOnMount)}function eu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&na(e,t)}return!1}function _c(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&na(e,n)}function na(e,t){return e.isStaleByTime(t.staleTime)}function Iy(e,t){return!Vs(e.getCurrentResult(),t)}var yp=re.createContext(void 0),zy=e=>{const t=re.useContext(yp);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},My=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.jsx(yp.Provider,{value:e,children:t})),vp=re.createContext(!1),jy=()=>re.useContext(vp);vp.Provider;function Uy(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var By=re.createContext(Uy()),Hy=()=>re.useContext(By);function $y(e,t){return typeof e=="function"?e(...t):!!e}var Qy=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Vy=e=>{re.useEffect(()=>{e.clearReset()},[e])},Wy=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&$y(n,[e.error,r]),Ky=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qy=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Gy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Xy(e,t,n){const r=zy(n),i=jy(),o=Hy(),l=r.defaultQueryOptions(e);l._optimisticResults=i?"isRestoring":"optimistic",Ky(l),Qy(l,o),Vy(o);const[s]=re.useState(()=>new t(r,l)),u=s.getOptimisticResult(l);if(re.useSyncExternalStore(re.useCallback(a=>{const c=i?()=>{}:s.subscribe(ce.batchCalls(a));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),re.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),qy(l,u))throw Gy(l,s,o);if(Wy({result:u,errorResetBoundary:o,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash)}))throw u.error;return l.notifyOnChangeProps?u:s.trackResult(u)}function co(e,t){return Xy(e,Dy,t)}var gp={exports:{}},wp={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,o=0;i<n.length;i++,o+=8)r[o>>>5]|=n[i]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var o=n[i]<<16|n[i+1]<<8|n[i+2],l=0;l<4;l++)i*8+l*6<=n.length*8?r.push(e.charAt(o>>>6*(3-l)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<n.length;o=++i%4)o!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(i))>>>6-o*2);return r}};wp.exports=t})();var Jy=wp.exports,tu={utf8:{stringToBytes:function(e){return tu.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(tu.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},Pc=tu;/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Yy=function(e){return e!=null&&(Sp(e)||Zy(e)||!!e._isBuffer)};function Sp(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Zy(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Sp(e.slice(0,0))}(function(){var e=Jy,t=Pc.utf8,n=Yy,r=Pc.bin,i=function(o,l){o.constructor==String?l&&l.encoding==="binary"?o=r.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var s=e.bytesToWords(o),u=o.length*8,a=1732584193,c=-271733879,f=-1732584194,d=271733878,m=0;m<s.length;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360;s[u>>>5]|=128<<u%32,s[(u+64>>>9<<4)+14]=u;for(var g=i._ff,w=i._gg,k=i._hh,p=i._ii,m=0;m<s.length;m+=16){var h=a,y=c,S=f,x=d;a=g(a,c,f,d,s[m+0],7,-680876936),d=g(d,a,c,f,s[m+1],12,-389564586),f=g(f,d,a,c,s[m+2],17,606105819),c=g(c,f,d,a,s[m+3],22,-1044525330),a=g(a,c,f,d,s[m+4],7,-176418897),d=g(d,a,c,f,s[m+5],12,1200080426),f=g(f,d,a,c,s[m+6],17,-1473231341),c=g(c,f,d,a,s[m+7],22,-45705983),a=g(a,c,f,d,s[m+8],7,1770035416),d=g(d,a,c,f,s[m+9],12,-1958414417),f=g(f,d,a,c,s[m+10],17,-42063),c=g(c,f,d,a,s[m+11],22,-1990404162),a=g(a,c,f,d,s[m+12],7,1804603682),d=g(d,a,c,f,s[m+13],12,-40341101),f=g(f,d,a,c,s[m+14],17,-1502002290),c=g(c,f,d,a,s[m+15],22,1236535329),a=w(a,c,f,d,s[m+1],5,-165796510),d=w(d,a,c,f,s[m+6],9,-1069501632),f=w(f,d,a,c,s[m+11],14,643717713),c=w(c,f,d,a,s[m+0],20,-373897302),a=w(a,c,f,d,s[m+5],5,-701558691),d=w(d,a,c,f,s[m+10],9,38016083),f=w(f,d,a,c,s[m+15],14,-660478335),c=w(c,f,d,a,s[m+4],20,-405537848),a=w(a,c,f,d,s[m+9],5,568446438),d=w(d,a,c,f,s[m+14],9,-1019803690),f=w(f,d,a,c,s[m+3],14,-187363961),c=w(c,f,d,a,s[m+8],20,1163531501),a=w(a,c,f,d,s[m+13],5,-1444681467),d=w(d,a,c,f,s[m+2],9,-51403784),f=w(f,d,a,c,s[m+7],14,1735328473),c=w(c,f,d,a,s[m+12],20,-1926607734),a=k(a,c,f,d,s[m+5],4,-378558),d=k(d,a,c,f,s[m+8],11,-2022574463),f=k(f,d,a,c,s[m+11],16,1839030562),c=k(c,f,d,a,s[m+14],23,-35309556),a=k(a,c,f,d,s[m+1],4,-1530992060),d=k(d,a,c,f,s[m+4],11,1272893353),f=k(f,d,a,c,s[m+7],16,-155497632),c=k(c,f,d,a,s[m+10],23,-1094730640),a=k(a,c,f,d,s[m+13],4,681279174),d=k(d,a,c,f,s[m+0],11,-358537222),f=k(f,d,a,c,s[m+3],16,-722521979),c=k(c,f,d,a,s[m+6],23,76029189),a=k(a,c,f,d,s[m+9],4,-640364487),d=k(d,a,c,f,s[m+12],11,-421815835),f=k(f,d,a,c,s[m+15],16,530742520),c=k(c,f,d,a,s[m+2],23,-995338651),a=p(a,c,f,d,s[m+0],6,-198630844),d=p(d,a,c,f,s[m+7],10,1126891415),f=p(f,d,a,c,s[m+14],15,-1416354905),c=p(c,f,d,a,s[m+5],21,-57434055),a=p(a,c,f,d,s[m+12],6,1700485571),d=p(d,a,c,f,s[m+3],10,-1894986606),f=p(f,d,a,c,s[m+10],15,-1051523),c=p(c,f,d,a,s[m+1],21,-2054922799),a=p(a,c,f,d,s[m+8],6,1873313359),d=p(d,a,c,f,s[m+15],10,-30611744),f=p(f,d,a,c,s[m+6],15,-1560198380),c=p(c,f,d,a,s[m+13],21,1309151649),a=p(a,c,f,d,s[m+4],6,-145523070),d=p(d,a,c,f,s[m+11],10,-1120210379),f=p(f,d,a,c,s[m+2],15,718787259),c=p(c,f,d,a,s[m+9],21,-343485551),a=a+h>>>0,c=c+y>>>0,f=f+S>>>0,d=d+x>>>0}return e.endian([a,c,f,d])};i._ff=function(o,l,s,u,a,c,f){var d=o+(l&s|~l&u)+(a>>>0)+f;return(d<<c|d>>>32-c)+l},i._gg=function(o,l,s,u,a,c,f){var d=o+(l&u|s&~u)+(a>>>0)+f;return(d<<c|d>>>32-c)+l},i._hh=function(o,l,s,u,a,c,f){var d=o+(l^s^u)+(a>>>0)+f;return(d<<c|d>>>32-c)+l},i._ii=function(o,l,s,u,a,c,f){var d=o+(s^(l|~u))+(a>>>0)+f;return(d<<c|d>>>32-c)+l},i._blocksize=16,i._digestsize=16,gp.exports=function(o,l){if(o==null)throw new Error("Illegal argument "+o);var s=e.wordsToBytes(i(o,l));return l&&l.asBytes?s:l&&l.asString?r.bytesToString(s):e.bytesToHex(s)}})();var by=gp.exports;const e0=Vp(by),t0=()=>{const e=new Date().toISOString().slice(0,10).replace(/-/g,""),t=`${n0}_${e}`;return e0(t)},Ji="https://api.valantis.store:41000/",n0="Valantis",r0={"Content-Type":"application/json","X-Auth":t0()},Vl=50,fo="Ошибка при отправке запроса",Or={id:1,brand:"",product:"По вашему запросу ничего не найдено",price:0};function Ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:i0}=Object.prototype,{getPrototypeOf:ra}=Object,ul=(e=>t=>{const n=i0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>ul(t)===e),al=e=>t=>typeof t===e,{isArray:vr}=Array,ai=al("undefined");function o0(e){return e!==null&&!ai(e)&&e.constructor!==null&&!ai(e.constructor)&&Ve(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kp=dt("ArrayBuffer");function l0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kp(e.buffer),t}const s0=al("string"),Ve=al("function"),Cp=al("number"),cl=e=>e!==null&&typeof e=="object",u0=e=>e===!0||e===!1,po=e=>{if(ul(e)!=="object")return!1;const t=ra(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a0=dt("Date"),c0=dt("File"),f0=dt("Blob"),d0=dt("FileList"),p0=e=>cl(e)&&Ve(e.pipe),h0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ve(e.append)&&((t=ul(e))==="formdata"||t==="object"&&Ve(e.toString)&&e.toString()==="[object FormData]"))},m0=dt("URLSearchParams"),y0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),vr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let s;for(r=0;r<l;r++)s=o[r],t.call(null,e[s],s,e)}}function xp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const _p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pp=e=>!ai(e)&&e!==_p;function nu(){const{caseless:e}=Pp(this)&&this||{},t={},n=(r,i)=>{const o=e&&xp(t,i)||i;po(t[o])&&po(r)?t[o]=nu(t[o],r):po(r)?t[o]=nu({},r):vr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Oi(arguments[r],n);return t}const v0=(e,t,n,{allOwnKeys:r}={})=>(Oi(t,(i,o)=>{n&&Ve(i)?e[o]=Ep(i,n):e[o]=i},{allOwnKeys:r}),e),g0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),w0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},S0=(e,t,n,r)=>{let i,o,l;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&ra(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},E0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},k0=e=>{if(!e)return null;if(vr(e))return e;let t=e.length;if(!Cp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},C0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ra(Uint8Array)),x0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},_0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},P0=dt("HTMLFormElement"),R0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),O0=dt("RegExp"),Rp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Oi(n,(i,o)=>{let l;(l=t(i,o,e))!==!1&&(r[o]=l||i)}),Object.defineProperties(e,r)},N0=e=>{Rp(e,(t,n)=>{if(Ve(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ve(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},T0=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return vr(e)?r(e):r(String(e).split(t)),n},F0=()=>{},L0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wl="abcdefghijklmnopqrstuvwxyz",Oc="0123456789",Op={DIGIT:Oc,ALPHA:Wl,ALPHA_DIGIT:Wl+Wl.toUpperCase()+Oc},D0=(e=16,t=Op.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function A0(e){return!!(e&&Ve(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I0=e=>{const t=new Array(10),n=(r,i)=>{if(cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=vr(r)?[]:{};return Oi(r,(l,s)=>{const u=n(l,i+1);!ai(u)&&(o[s]=u)}),t[i]=void 0,o}}return r};return n(e,0)},z0=dt("AsyncFunction"),M0=e=>e&&(cl(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),E={isArray:vr,isArrayBuffer:kp,isBuffer:o0,isFormData:h0,isArrayBufferView:l0,isString:s0,isNumber:Cp,isBoolean:u0,isObject:cl,isPlainObject:po,isUndefined:ai,isDate:a0,isFile:c0,isBlob:f0,isRegExp:O0,isFunction:Ve,isStream:p0,isURLSearchParams:m0,isTypedArray:C0,isFileList:d0,forEach:Oi,merge:nu,extend:v0,trim:y0,stripBOM:g0,inherits:w0,toFlatObject:S0,kindOf:ul,kindOfTest:dt,endsWith:E0,toArray:k0,forEachEntry:x0,matchAll:_0,isHTMLForm:P0,hasOwnProperty:Rc,hasOwnProp:Rc,reduceDescriptors:Rp,freezeMethods:N0,toObjectSet:T0,toCamelCase:R0,noop:F0,toFiniteNumber:L0,findKey:xp,global:_p,isContextDefined:Pp,ALPHABET:Op,generateString:D0,isSpecCompliantForm:A0,toJSONObject:I0,isAsyncFn:z0,isThenable:M0};function j(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}E.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Np=j.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tp[e]={value:e}});Object.defineProperties(j,Tp);Object.defineProperty(Np,"isAxiosError",{value:!0});j.from=(e,t,n,r,i,o)=>{const l=Object.create(Np);return E.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),j.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const j0=null;function ru(e){return E.isPlainObject(e)||E.isArray(e)}function Fp(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Nc(e,t,n){return e?e.concat(t).map(function(i,o){return i=Fp(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function U0(e){return E.isArray(e)&&!e.some(ru)}const B0=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function fl(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!E.isUndefined(k[w])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(i))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(E.isDate(g))return g.toISOString();if(!u&&E.isBlob(g))throw new j("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(g)||E.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,w,k){let p=g;if(g&&!k&&typeof g=="object"){if(E.endsWith(w,"{}"))w=r?w:w.slice(0,-2),g=JSON.stringify(g);else if(E.isArray(g)&&U0(g)||(E.isFileList(g)||E.endsWith(w,"[]"))&&(p=E.toArray(g)))return w=Fp(w),p.forEach(function(y,S){!(E.isUndefined(y)||y===null)&&t.append(l===!0?Nc([w],S,o):l===null?w:w+"[]",a(y))}),!1}return ru(g)?!0:(t.append(Nc(k,w,o),a(g)),!1)}const f=[],d=Object.assign(B0,{defaultVisitor:c,convertValue:a,isVisitable:ru});function m(g,w){if(!E.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));f.push(g),E.forEach(g,function(p,h){(!(E.isUndefined(p)||p===null)&&i.call(t,p,E.isString(h)?h.trim():h,w,d))===!0&&m(p,w?w.concat(h):[h])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Tc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ia(e,t){this._pairs=[],e&&fl(e,this,t)}const Lp=ia.prototype;Lp.append=function(t,n){this._pairs.push([t,n])};Lp.toString=function(t){const n=t?function(r){return t.call(this,r,Tc)}:Tc;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function H0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dp(e,t,n){if(!t)return e;const r=n&&n.encode||H0,i=n&&n.serialize;let o;if(i?o=i(t,n):o=E.isURLSearchParams(t)?t.toString():new ia(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Fc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ap={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$0=typeof URLSearchParams<"u"?URLSearchParams:ia,Q0=typeof FormData<"u"?FormData:null,V0=typeof Blob<"u"?Blob:null,W0={isBrowser:!0,classes:{URLSearchParams:$0,FormData:Q0,Blob:V0},protocols:["http","https","file","blob","url","data"]},Ip=typeof window<"u"&&typeof document<"u",K0=(e=>Ip&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),q0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ip,hasStandardBrowserEnv:K0,hasStandardBrowserWebWorkerEnv:q0},Symbol.toStringTag,{value:"Module"})),at={...G0,...W0};function X0(e,t){return fl(e,new at.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return at.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function J0(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Y0(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function zp(e){function t(n,r,i,o){let l=n[o++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),u=o>=n.length;return l=!l&&E.isArray(i)?i.length:l,u?(E.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!s):((!i[l]||!E.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&E.isArray(i[l])&&(i[l]=Y0(i[l])),!s)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,i)=>{t(J0(r),i,n,0)}),n}return null}function Z0(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const oa={transitional:Ap,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=E.isObject(t);if(o&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return i?JSON.stringify(zp(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return X0(t,this.formSerializer).toString();if((s=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return fl(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Z0(t)):t}],transformResponse:[function(t){const n=this.transitional||oa.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&E.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{oa.headers[e]={}});const la=oa,b0=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e1=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&b0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lc=Symbol("internals");function Nr(e){return e&&String(e).trim().toLowerCase()}function ho(e){return e===!1||e==null?e:E.isArray(e)?e.map(ho):String(e)}function t1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const n1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kl(e,t,n,r,i){if(E.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function r1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function i1(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}class dl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,u,a){const c=Nr(u);if(!c)throw new Error("header name must be a non-empty string");const f=E.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||u]=ho(s))}const l=(s,u)=>E.forEach(s,(a,c)=>o(a,c,u));return E.isPlainObject(t)||t instanceof this.constructor?l(t,n):E.isString(t)&&(t=t.trim())&&!n1(t)?l(e1(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Nr(t),t){const r=E.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return t1(i);if(E.isFunction(n))return n.call(this,i,r);if(E.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nr(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Kl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=Nr(l),l){const s=E.findKey(r,l);s&&(!n||Kl(r,r[s],s,n))&&(delete r[s],i=!0)}}return E.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Kl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return E.forEach(this,(i,o)=>{const l=E.findKey(r,o);if(l){n[l]=ho(i),delete n[o];return}const s=t?r1(o):String(o).trim();s!==o&&delete n[o],n[s]=ho(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Lc]=this[Lc]={accessors:{}}).accessors,i=this.prototype;function o(l){const s=Nr(l);r[s]||(i1(i,l),r[s]=!0)}return E.isArray(t)?t.forEach(o):o(t),this}}dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(dl);const wt=dl;function ql(e,t){const n=this||la,r=t||n,i=wt.from(r.headers);let o=r.data;return E.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Mp(e){return!!(e&&e.__CANCEL__)}function Ni(e,t,n){j.call(this,e??"canceled",j.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Ni,j,{__CANCEL__:!0});function o1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new j("Request failed with status code "+n.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const l1=at.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const l=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),E.isString(r)&&l.push("path="+r),E.isString(i)&&l.push("domain="+i),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function s1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function u1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jp(e,t){return e&&!s1(t)?u1(e,t):t}const a1=at.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let l=o;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(l){const s=E.isString(l)?i(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function c1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function f1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[o];l||(l=a),n[i]=u,r[i]=a;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),a-l<t)return;const m=c&&a-c;return m?Math.round(d*1e3/m):void 0}}function Dc(e,t){let n=0;const r=f1(50,250);return i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,s=o-n,u=r(s),a=o<=l;n=o;const c={loaded:o,total:l,progress:l?o/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&a?(l-o)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const d1=typeof XMLHttpRequest<"u",p1=d1&&function(e){return new Promise(function(n,r){let i=e.data;const o=wt.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(E.isFormData(i)){if(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[w,...k]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([w||"multipart/form-data",...k].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(w+":"+k))}const d=jp(e.baseURL,e.url);f.open(e.method.toUpperCase(),Dp(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function m(){if(!f)return;const w=wt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),p={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:w,config:e,request:f};o1(function(y){n(y),a()},function(y){r(y),a()},p),f=null}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){f&&(r(new j("Request aborted",j.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new j("Network Error",j.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let k=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Ap;e.timeoutErrorMessage&&(k=e.timeoutErrorMessage),r(new j(k,p.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,f)),f=null},at.hasStandardBrowserEnv&&(s&&E.isFunction(s)&&(s=s(e)),s||s!==!1&&a1(d))){const w=e.xsrfHeaderName&&e.xsrfCookieName&&l1.read(e.xsrfCookieName);w&&o.set(e.xsrfHeaderName,w)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&E.forEach(o.toJSON(),function(k,p){f.setRequestHeader(p,k)}),E.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),l&&l!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Dc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Dc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=w=>{f&&(r(!w||w.type?new Ni(null,e,f):w),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const g=c1(d);if(g&&at.protocols.indexOf(g)===-1){r(new j("Unsupported protocol "+g+":",j.ERR_BAD_REQUEST,e));return}f.send(i||null)})},iu={http:j0,xhr:p1};E.forEach(iu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ac=e=>`- ${e}`,h1=e=>E.isFunction(e)||e===null||e===!1,Up={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!h1(n)&&(r=iu[(l=String(n)).toLowerCase()],r===void 0))throw new j(`Unknown adapter '${l}'`);if(r)break;i[l||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
`+o.map(Ac).join(`
`):" "+Ac(o[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:iu};function Gl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ni(null,e)}function Ic(e){return Gl(e),e.headers=wt.from(e.headers),e.data=ql.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Up.getAdapter(e.adapter||la.adapter)(e).then(function(r){return Gl(e),r.data=ql.call(e,e.transformResponse,r),r.headers=wt.from(r.headers),r},function(r){return Mp(r)||(Gl(e),r&&r.response&&(r.response.data=ql.call(e,e.transformResponse,r.response),r.response.headers=wt.from(r.response.headers))),Promise.reject(r)})}const zc=e=>e instanceof wt?e.toJSON():e;function pr(e,t){t=t||{};const n={};function r(a,c,f){return E.isPlainObject(a)&&E.isPlainObject(c)?E.merge.call({caseless:f},a,c):E.isPlainObject(c)?E.merge({},c):E.isArray(c)?c.slice():c}function i(a,c,f){if(E.isUndefined(c)){if(!E.isUndefined(a))return r(void 0,a,f)}else return r(a,c,f)}function o(a,c){if(!E.isUndefined(c))return r(void 0,c)}function l(a,c){if(E.isUndefined(c)){if(!E.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,c)=>i(zc(a),zc(c),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||i,d=f(e[c],t[c],c);E.isUndefined(d)&&f!==s||(n[c]=d)}),n}const Bp="1.6.7",sa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sa[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mc={};sa.transitional=function(t,n,r){function i(o,l){return"[Axios v"+Bp+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,s)=>{if(t===!1)throw new j(i(l," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!Mc[l]&&(Mc[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,s):!0}};function m1(e,t,n){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const s=e[o],u=s===void 0||l(s,o,e);if(u!==!0)throw new j("option "+o+" must be "+u,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+o,j.ERR_BAD_OPTION)}}const ou={assertOptions:m1,validators:sa},Pt=ou.validators;class Qo{constructor(t){this.defaults=t,this.interceptors={request:new Fc,response:new Fc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ou.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),i!=null&&(E.isFunction(i)?n.paramsSerializer={serialize:i}:ou.assertOptions(i,{encode:Pt.function,serialize:Pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&E.merge(o.common,o[n.method]);o&&E.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=wt.concat(l,o);const s=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(u=u&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let c,f=0,d;if(!u){const g=[Ic.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,a),d=g.length,c=Promise.resolve(n);f<d;)c=c.then(g[f++],g[f++]);return c}d=s.length;let m=n;for(f=0;f<d;){const g=s[f++],w=s[f++];try{m=g(m)}catch(k){w.call(this,k);break}}try{c=Ic.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,d=a.length;f<d;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=pr(this.defaults,t);const n=jp(t.baseURL,t.url);return Dp(n,t.params,t.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(t){Qo.prototype[t]=function(n,r){return this.request(pr(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,s){return this.request(pr(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Qo.prototype[t]=n(),Qo.prototype[t+"Form"]=n(!0)});const mo=Qo;class ua{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(s=>{r.subscribe(s),o=s}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,s){r.reason||(r.reason=new Ni(o,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ua(function(i){t=i}),cancel:t}}}const y1=ua;function v1(e){return function(n){return e.apply(null,n)}}function g1(e){return E.isObject(e)&&e.isAxiosError===!0}const lu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lu).forEach(([e,t])=>{lu[t]=e});const w1=lu;function Hp(e){const t=new mo(e),n=Ep(mo.prototype.request,t);return E.extend(n,mo.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Hp(pr(e,i))},n}const q=Hp(la);q.Axios=mo;q.CanceledError=Ni;q.CancelToken=y1;q.isCancel=Mp;q.VERSION=Bp;q.toFormData=fl;q.AxiosError=j;q.Cancel=q.CanceledError;q.all=function(t){return Promise.all(t)};q.spread=v1;q.isAxiosError=g1;q.mergeConfig=pr;q.AxiosHeaders=wt;q.formToJSON=e=>zp(E.isHTMLForm(e)?new FormData(e):e);q.getAdapter=Up.getAdapter;q.HttpStatusCode=w1;q.default=q;q.defaults.headers=r0;const yo={getProductIDs:(e,t)=>q.post(Ji,{action:"get_ids",params:{offset:e,limit:t}}).then(({data:n})=>n.result),getAllProductIDs:()=>q.post(Ji,{action:"get_ids"}).then(({data:e})=>e.result),getFilteredProductIDs:(e,t,n)=>{const r={};return e&&(r.price=Number(e)),t&&(r.brand=t),n&&(r.product=n),q.post(Ji,{action:"filter",params:r}).then(({data:i})=>i.result)},getItems:e=>q.post(Ji,{action:"get_items",params:{ids:e}}).then(({data:t})=>t.result)},S1="_layout_1gxaa_1",E1="_customLoader_1gxaa_12",k1="_d5_1gxaa_1",jc={layout:S1,customLoader:E1,d5:k1},$p=()=>L.jsx("div",{className:jc.layout,children:L.jsx("div",{className:jc.customLoader})});function C1(e){return new Intl.NumberFormat("ru-RU",{style:"currency",currency:"RUB",currencyDisplay:"symbol"}).format(e)}const x1="_card_1mlk9_1",_1="_cardImg_1mlk9_25",P1="_cardName_1mlk9_32",R1="_cardIcon_1mlk9_49",O1="_cardInfoContainer_1mlk9_58",N1="_cardInfoWrapper_1mlk9_65",T1="_cardInfo_1mlk9_58",F1="_cardInfoBefore_1mlk9_80",L1="_cardInfoNow_1mlk9_87",D1="_error_1mlk9_111",A1="_link_1mlk9_119",ke={card:x1,cardImg:_1,cardName:P1,cardIcon:R1,cardInfoContainer:O1,cardInfoWrapper:N1,cardInfo:T1,cardInfoBefore:F1,cardInfoNow:L1,error:D1,link:A1},Uc=({id:e,price:t,product:n,brand:r})=>L.jsxs("article",{className:ke.card,children:[L.jsx("div",{className:ke.cardImg,children:L.jsx("img",{src:"https://i.postimg.cc/sgk1QQLb/png-transparent-engagement-ring-diamond-wedding-ring-gold-ring-ring-diamond-gold-Photoroom-png-Photo.png",alt:""})}),L.jsx("div",{className:ke.cardName,children:L.jsx("p",{children:"VALANTIS"})}),L.jsxs("div",{className:ke.cardInfo,children:[e===1?"":L.jsx("a",{href:"/",className:ke.cardIcon,children:L.jsx("ion-icon",{name:"heart-outline"})}),L.jsxs("div",{className:ke.cardInfoWrapper,children:[L.jsx("span",{className:`${ke.cardInfoContainer} ${ke.cardInfoNow}`,children:n}),e===1&&L.jsx("a",{href:"/",className:ke.link,children:"Вернуться на главную"}),L.jsx("span",{className:`${ke.cardInfoContainer} ${ke.cardInfoNow}`,children:r}),L.jsx("span",{className:`${ke.cardInfoContainer} ${ke.cardInfoBefore}`,children:e===1?"":C1(t)})]}),e===1?"":L.jsx("a",{href:"/",className:ke.cardIcon,children:L.jsx("ion-icon",{name:"cart-outline"})})]})]},e),I1="_grid_fs3bf_1",z1={grid:I1},M1=e=>{const{productIDs:t=[]}=e,{isLoading:n,data:r=[]}=co({queryKey:["catalog-get-items",t],queryFn:()=>yo.getItems(t),select:o=>[...new Map(o.map(u=>[u.id,u])).values()]}),i=r.length>0;return n?L.jsx($p,{}):i?t.isError?L.jsx("p",{children:fo}):L.jsx("ul",{className:z1.grid,children:r.map(({product:o,price:l,id:s,brand:u})=>L.jsx(Uc,{product:o,price:l,id:s,brand:u},s))}):L.jsx(Uc,{product:Or.product,price:Or.price,id:Or.id,brand:Or.brand},Or.id)},j1="_pagination_13i6s_1",U1={pagination:j1},B1=({page:e,totalCount:t,setPage:n})=>L.jsxs("div",{className:U1.pagination,children:[L.jsx("button",{type:"button",disabled:e===1,onClick:()=>n(r=>r-1),children:"Назад"}),L.jsxs("span",{children:[e,"/",t]}),L.jsx("button",{type:"button",disabled:e===t,onClick:()=>n(r=>r+1),children:"Вперед"})]}),H1="_filter_1tyfl_1",$1="_filterResetButton_1tyfl_9",Q1="_title_1tyfl_13",Xl={filter:H1,filterResetButton:$1,title:Q1},V1=({price:e,brand:t,product:n,setPrice:r,setBrand:i,setProduct:o,resetFilters:l,isFilterApplied:s})=>L.jsxs("form",{className:Xl.filter,children:[L.jsx("h3",{className:Xl.title,children:"Фильтр"}),L.jsx("input",{type:"number",placeholder:"Цена",value:e,onChange:({target:u})=>r(u.value)}),L.jsx("input",{placeholder:"Бренд",value:t,onChange:({target:u})=>i(u.value)}),L.jsx("input",{placeholder:"Название",value:n,onChange:({target:u})=>o(u.value)}),s&&L.jsx("button",{className:Xl.filterResetButton,type:"reset",onClick:l,children:"Сбросить"})]}),W1="_titleShop_9bbi6_75",Bc={titleShop:W1},K1=()=>{const[e,t]=re.useState(""),[n,r]=re.useState(1),[i,o]=re.useState(""),[l,s]=re.useState(""),[u,a]=re.useState(""),c=!!(i||l||u),{isLoading:f,data:d=[]}=co({queryKey:["get-product-ids",n],queryFn:()=>yo.getProductIDs((n-1)*Vl,Vl)}),{isLoading:m,data:g=[]}=co({queryKey:["get-product-ids"],queryFn:()=>yo.getAllProductIDs()}),{isLoading:w,data:k=[]}=co({queryKey:["get-filtered-product-ids",i,l,u],queryFn:()=>yo.getFilteredProductIDs(i,l,u),enabled:c}),p=f||w||m;g.isError&&t(fo),d.isError&&t(fo),k.isError&&t(fo);const h=()=>{r(1),o(""),s(""),a(""),t("")},y=Math.ceil(g.length/Vl);return L.jsxs(L.Fragment,{children:[L.jsx("h1",{className:Bc.titleShop,children:"SHOP online"}),L.jsxs("div",{className:Bc.root,children:[L.jsx(V1,{price:i,brand:l,product:u,setPrice:o,setBrand:s,setProduct:a,resetFilters:h,isFilterApplied:c}),!c&&L.jsx(B1,{page:n,totalCount:y,setPage:r}),p?L.jsx($p,{}):L.jsx(M1,{productIDs:c?k:d}),e&&L.jsx("p",{children:e})]})]})},q1=()=>L.jsx(K1,{}),G1=new Ly({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),X1=()=>L.jsx(My,{client:G1,children:L.jsx(q1,{})});Jl.createRoot(document.getElementById("root")).render(L.jsx(X1,{}));
